note 18285 deleted from function.array-splice by felipe
| From: | felipe@php.net | Date: | Fri, 04 Jan 2008 01:39:20 +0000 |
| Subject: | note 18285 deleted from function.array-splice by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134745@lists.php.net to get a copy of this message | ||
Note Submitter: steve at hynding dot com
----
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 )