I need to use two arrays - initial one, and the same array without the first element. For example:
public function foobar($a, $b, $c)
{
$initial_array = get_defined_var();
var_dump($initial_array); // ok
$sliced_array = array_shift($initial_array);
var_dump($sliced_array); // int(1) ???
//initial array should be 'a' => $a, 'b' => $b, 'c' => $c
// sliced array should be 'b' => $b, 'c' => $c
}
The problem is that sliced array seems to be some strange value, like int(1)...What's wrong here?