by Fredrik Hugås | Oct 12, 2012 | Articles, PHP
There is a special if/else functionality available that not many programmers know how to utilize that I now want to share with you. This function is called a Ternary operation. The ternary operation takes 3 arguments, The first which is the conditional expression, the...
by Fredrik Hugås | Sep 11, 2012 | Articles, PHP
Sometimes you want to send mail from your php code, maybe you want to send a mail to yourself on an event or send a message to your users or subscribers, don’t fear this is not a hard task to accomplish, and as usual in programming, there is many paths to the...
by Fredrik Hugås | Sep 21, 2011 | PHP
One thing that can be annoying about PHP is that you have to include the class-files before you can create a class, and if you have alot of classes the list of includes can get quite long. You could create a dedicated include file and throw all the include statements...