Posts Tagged ‘reference’

PHP Foreach Loop

This item was filled under [ PHP & MySql, References ]

A total different kind of loop is the foreach loop. This loop is used to separately handle each sub-variable out of an array. Each sub-variable may be split into its name and its value. foreach($array AS $key => $value) { … execute code … } Each sub-variable of the array $array will be split into [...]

Continue reading...

Tagged with: [ , , , ]

PHP For Loop

This item was filled under [ PHP & MySql, References ]

The For loop is used to repeat executing a certain code for a specific amount of times. This could as well be done with the while loop however the for loop is made for this. The while loop may be used for much more complex stuff and for various other purposes. The for loop is [...]

Continue reading...

Tagged with: [ , , , ]