note 108027 deleted from language.types.string by danbrown
| From: | danbrown@php.net | Date: | Thu, 10 May 2012 17:56:50 +0000 |
| Subject: | note 108027 deleted from language.types.string by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-187689@lists.php.net to get a copy of this message | ||
Note Submitter: Savchenko Pavel
----
re:
$r = '12345';
print_r($r['1']); // return 2 -- correct, this is element of string
print_r($r['value']); // return 1 -- incorrect, WTF???
$t='value';
echo (int)$t; //return 0
print_r($r['0']); // return 1-- correct, this is element of string