|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-05-15 19:59 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 07:00:01 2025 UTC |
Description: ------------ Here is an example from ZendEngine-2.0.pdf (from zend.com): An example of the new functionality: $str1 = $str2 = ??; $str1{0} = ?a?; $str2[0] = ?a?; The result will be $str1 being the string ?a? But we still get array, just as for []. Reproduce code: --------------- $str1 = ""; $str1{0} = 'a'; var_dump($str1); Expected result: ---------------- string(1) "a" Actual result: -------------- array(1) { [0]=> string(1) "a" }