Menu
[code]
$temp = array_splice( $data, $index, 1 );
$update_array[] = $temp[0];
I would like to be able to access the ‘0’ index of the array being returned by array_splice without having to use the temporary variable. I would like something like this:
[CODE]
$update_array[] = ${array_splice( $data, $index, 1 )}[0];
This is obviously not the right code, but I hope you get the drift of what I am trying to do. Thanks for any help you may be able to provide.