Networking, Programming and Graphics Tutorials

How to use PHP while operator [2/2]

Also while can be used for listing arrays:

<?php
$array
=array("One""Two"3"Apple");
while(list(
$key,$value)=each($array)) {
    echo 
"$key : $value\n";
}
?>
The result from above PHP script will be:

0 : One
1 : Two
2 : 3
3 : Apple
Rate this tutorial:                    
Networking, Programming and Graphics Tutorials - How to use PHP while operator [2/2] - Networking, Programming and Graphics Tutorials

Need a specific tutorial? Do not hesitate and submit a request!
Related Tags: precedence of operator or hierarchy of operator of C++  php for while operator  php AND operator  php while operator  "while operator"  php while operator  while operator  & * operator in c++  php while +operator  operator c++ ^= += -= *= /=  while operator ftp  while operator php  while operator php  What is an operator in c++  php operator while  while operator =  while = operator  php while operator OR  php for operator  c++ operator "->*"