note 114197 rejected from language.types.array by cmb
| From: | cmb@php.net | Date: | Fri, 15 May 2015 18:30:08 +0000 |
| Subject: | note 114197 rejected from language.types.array by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-202530@lists.php.net to get a copy of this message | ||
Note Submitter: ffe
----
<?php
error_reporting(E_ALL);
$res=42;
echo("+".$res[0]."+".$res[10]."+");
$res[0]=1;
?>
The last line correctly states "Warning: Cannot use a scalar value as an array", but the
echo produces +++ as output with no warning. This seems strange to me.