Blog Detail

PHP Factory

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.

subscribe Recent Posts

  • PHP : The do...while Statement

    Posted on Tuesday November 17th, 2009 at 01:11 in loops

    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

    Posted on Tuesday November 17th, 2009 at 01:10 in loops

    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

    Posted on Tuesday November 17th, 2009 at 01:09 in 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

    Posted on Tuesday November 17th, 2009 at 01:08 in 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

    Posted on Tuesday November 17th, 2009 at 01:07 in 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

    Posted on Tuesday November 17th, 2009 at 01:06 in 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...

Comments & Reviews

There is no rating for this blog because there are no comments yet.

Post A Comment/Review

* Your IP is being logged.
* Your e-mail address is used only for verification purposes only and will not be sold, or shown publicly.
* No HTML tags allowed
* DO NOT use the Comments/Reviews to promote your own site.

Name: or Login
E-mail:
Rating:
Verify: Spam Protection: sum of 4 + 1
Comment:
  Remember Information