Blog Detail
PHP Factory
http://php-factory.blogspot.com/
This blog acts as a tutorial for those who want to learn PHP and helps then with sample codes and basic requirement to learn and code in PHP. It also teaches them about mysql, apache and PHP installation.
Recent Posts
PHP : The do...while Statement
The do...while statement will always execute the block of code once, it will then check the condition, and repeat the loop while the condition is true.Syntax do { code to be executed; }while (condition); ExampleThe example below ...
PHP : The while Loop
The while loop executes a block of code while a condition is true.Syntax while (condition) { code to be executed; } ExampleThe example below defines a loop that starts with i=1. The loop will continue to run as long as i is less th...
PHP Looping - While Loops
Loops execute a block of code a specified number of times, or while a specified condition is true. PHP LoopsOften when you write code, you want the same block of code to run over and over again in a row. Instead of adding several almost equal lines...
PHP : Multidimensional Arrays
In a multidimensional array, each element in the main array can also be an array. And each element in the sub-array can be an array, and so on.ExampleIn this example we create a multidimensional array, with automatically assigned ID keys: $families...
PHP : Associative Arrays
An associative array, each ID key is associated with a value.When storing data about specific named values, a numerical array is not always the best way to do it.With associative arrays we can use the values as keys and assign values to them.Exampl...
PHP : Numeric Arrays
A numeric array stores each array element with a numeric index.There are two methods to create a numeric array.1. In the following example the index are automatically assigned (the index starts at 0): $cars=array("Saab","Volvo","BMW","Toyota"); 2. I...

