Numeric strings are used all the time in PHP, whether it be to count through loops or just to count certain features such as number of posts. They behave in a similar way to double quotation strings and you don't... Read More.
Both $_POST and $_GET are very useful when using forms with PHP. Post data allows for PHP to process more sensitive data such as login forms and contact forms. The way to tell the difference between a Post and a... Read More.
It's important when submitting a form that you make sure people can't attack your website with the submit data. A common way of structuring form validation is through the use of IF's and ELSE's (see examples below). Read More.
The PHP date function allows you to format a timestamp into human readable form. There is a vast amount of options depending on how you wish to format the date. For the full list visit http://www.php.net/date . Read More.
The following resource goes through a simple, yet effective way to securely send PHP Mail. It pulls together mail and validation posts to pass variables through stringant tests before sending the mail. Read More.
The ability to take a string and derive different things from it is very useful in any code, especially PHP. Strpos stands for string position and allows you to search a specific string for a letter or key word. Read More.
The function substr_replace is much like the normal str_replace but introduces some additional functionality to the user. It is more mathematically based than str_replace as it allows you to define length and starting points. Read More.
There are 3 basic functions that are used within PHP for string capitalisation - ucwords, strtoupper, strtolower. Each of these functions can be useful for many different reasons when using PHP. Read More.
The explode function in PHP takes a string and splits it into smaller sections based upon the criteria you give it. A common use for explode is taking a string and exploding it so that all the words are in... Read More.
Object Orientated Programming within PHP is a method whereby the developer can group similar tasks together in classes. This method of programming is also known as "DRY" - don't repeat yourself. Read More.