/test/subjects/optimization/array_pop.php
http://phc.googlecode.com/ · PHP · 14 lines · 8 code · 4 blank · 2 comment · 0 complexity · ce5785e7804be6aa0953a640598a8c5a MD5 · raw file
- <?php
- // try it without arry_pop
- $a = array (1, 2, 3, 4);
- $b = $a[$argc];
- $a[$argc] = NULL;
- // same thing
- $x = array (1, 2, 3, 4);
- $y = array_pop ($x);
- var_dump ($a, $b, $x, $y);
- ?>