Array Shift
Posted: Tue Mar 14, 2006 5:57 pm
Hi, I have been browsing through the PHP website and I am not quite sure why this dosnt work. I am trying to shift my array and then add a 0 on the end. the code I have is:
array shift dosn't actually shift the array it just displays the first value in the array. any help would be great, thanks.
Code: Select all
$unpack = explode("|",$row[$type[$counter][name]]);
$unpack = array_shift($unpack);
$unpack[] = 0;