note 18285 modified in function.array-splice by vrana
| From: | vrana@php.net | Date: | Tue, 17 Aug 2004 14:50:05 +0000 |
| Subject: | note 18285 modified in function.array-splice by vrana | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-79697@lists.php.net to get a copy of this message | ||
Values removed from the array are returned as an array as such:
<?php
$letters = array("a","b","c");
$removed_val = array_splice($letters, 1, 1);
print_r($removed_val);
?>
Printed Result:
Array ( [0] => b )
--was--
Values removed from the array are returned as an array as such:
$letters = array("a","b","c");
$removed_val = array_splice($letters, 1, 1);
print_r($removed_val);
Printed Result:
Array ( [0] => b )
http://php.net/manual/en/function.array-splice.php