jtGraphic

Personal blog of James Thompson: Ramblings of an Internet addict...

Tag: Function Friday

PHP Function Friday: date

I think the date function is extremely useful.  It gives your programs an awareness of WHEN they are.  You can do some pretty cool things like calculate this date from that date, make a calendar, or store information about when an action was taken.
Function and Syntax
string date(string $format [, int $timestamp ])
Manual Entry
http://php.net/manual/en/function.date.php
Notes [...]

PHP Function Friday: include

Including files makes it really easy to NOT duplicate code. It’s great for creating headers and footers for websites, or using it in the inverse: make the header and footer in one file, and include the content.  You can also store site configuration files, functions, and repeating content, etc.
Function and Syntax
include(<file path>);

Manual Entry
http://php.net/manual/en/function.include.php
Notes and [...]

PHP Function Friday: function

So, I’ve decided to start including a new post every Friday – kind of as a discipline thing. I’m going to write a post on a PHP function every Friday. I’m not just going to regurgitate the post in the official PHP manual, but I’m going to list my experience with it along [...]