note 117294 deleted from function.list by cmb
| From: | cmb@php.net | Date: | Wed, 23 Nov 2016 18:51:58 +0000 |
| Subject: | note 117294 deleted from function.list by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207539@lists.php.net to get a copy of this message | ||
Note Submitter: mdessaintes at gmail dot com
----
Assignement is from right to left so this result in unexpected behavior:
<?php
$str = ['123456', 'abcdef'];
list($num, $str) = $str;
var_dump($num, $str);
?>
outputs :
string 'a' (length=1)
string 'abcdef' (length=6)