codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
<?php $myArray = array("A","B","C","D","E","F","I","G","H"); for($i=0; $i<count($myArray ); $i++){ echo 'i = ' . $i . "\n"; echo 'count($myArray) = ' . count($myArray) . "\n"; var_dump($myArray ); //...Remove the first Element of this array while $i is less than it's length. array_shift($myArray); }
Private
[
?
]
Run code
Submit