Archive for PHP
The ternary Operator
There is an operator in PHP that is very similar in functionality to the if statement called the ternary (?) conditional operator. It evaluates to check if the first subexpression is true, if it is it will return the value of the second subexpression, if the first subexpression is false it will return the value [...]
Read moreSpecial characters to RSS
Difference between IE and Firefox about special characters to RSS , you have a commando from PHP. $str = htmlentities($str, ENT_COMPAT, ‘UTF-8′); Both working Bookmark on Delicious Digg this post Recommend on Facebook Tip on Hyves Share on Linkedin Tweet about it Subscribe to the comments on this post
Read moreExample Date and strtotime to PHP
This Date: Month Year echo date(“F Y”); Result: Bookmark on Delicious Digg this post Recommend on Facebook Tip on Hyves Share on Linkedin Tweet about it Subscribe to the comments on this post
Read morePHP Date – Reference
Now that you know the basics of using PHP’s date function, you can easily plug in any of the following letters to format your timestamp to meet your needs. Important Full Date and Time: r: Displays the full date, time and timezone offset. It is equivalent to manually entering date(“D, d M Y H:i:s O”) [...]
Read more
