Please note, this is a STATIC archive of website www.w3schools.com from 05 May 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.
Disabled
×
Change Orientation
Please note, this is a STATIC archive of website www.w3schools.com from 05 May 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.
"; // The current element is Peter echo next($people) . "
"; // The next element of Peter is Joe echo current($people) . "
"; // Now the current element is Joe echo prev($people) . "
"; // The previous element of Joe is Peter echo end($people) . "
"; // The last element is Cleveland echo prev($people) . "
"; // The previous element of Cleveland is Glenn echo current($people) . "
"; // Now the current element is Glenn echo reset($people) . "
"; // Moves the internal pointer to the first element of the array, which is Peter echo next($people) . "
" . "
"; // The next element of Peter is Joe print_r (each($people)); // Returns the key and value of the current element (now Joe), and moves the internal pointer forward ?>
×
Report a Problem:
Your E-mail:
Page address:
Description:
Disabled