note 103569 modified in function.array-shift by danbrown

From: Date: Wed, 20 Apr 2011 16:47:31 +0000
Subject: note 103569 modified in function.array-shift by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-179017@lists.php.net to get a copy of this message
This doesn't work with a 2 dimensional array. With 2 dimensional array I do this: <?php $backup = $arr; $first = array_shift ( $backup ); ?> --was-- This doesn't work with a 2 dimensional array. With 2 dimensional array I do this: $backup = $arr; $first = array_shift ( $backup ); http://php.net/manual/en/function.array-shift.php

« previous php.notes (#179017) next »