note 110310 deleted from function.unset by googleguy
| From: | googleguy@php.net | Date: | Tue, 09 Oct 2012 20:55:43 +0000 |
| Subject: | note 110310 deleted from function.unset by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-191218@lists.php.net to get a copy of this message | ||
Note Submitter: espertalhao04 at hotmail dot com
----
tested with php 4.4.9 to 5.4.7 from http://sandbox.onlinephpfunctions.com/
tested with php 5.2.0.8 from http://phptester.net/
<?php
function del(&$a)
{
unset($a[0]);
}
$t = array("a","b","c");
del($t);
echo var_dump($t);
/*returns:
array(2) {
[1]=>
string(1) "b"
[2]=>
string(1) "c"
}*/
?>
i think i don't have to explain...