<?php
foreach(get_defined_vars()as $key => $v {
unset($GLOBALS[$key]);
}
$b=['1','2',3,4,5,6,7,8];
$vars=array_slice($b, 1);
var_dump($vars);
- Output for 5.4.0 - 5.4.24
- Parse error: syntax error, unexpected 'unset' (T_UNSET) in /in/Fgu25 on line 6
Process exited with code 255. - Output for 5.3.0 - 5.3.28
- Parse error: syntax error, unexpected T_UNSET in /in/Fgu25 on line 6
Process exited with code 255.
preferences:
194.93 ms | 1395 KiB | 61 Q