|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-18 19:50 UTC] tony2001@php.net
[2005-12-06 16:46 UTC] vrana@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 05:00:01 2025 UTC |
Description: ------------ New PHP Strict Standards error as of 5.1.0RC6: PHP Strict Standards: Usage of {} to access string offsets is deprecated and will be removed in PHP 6 Yet documentation claims {} should be used and [] are deprecated (see http://www.php.net/manual/en/language.types.string.php#language.types.string.substr) 1. What should be used now that both [] and {} are deprecated? 2. Please update documentation accordingly Reproduce code: --------------- $string = 'abc'; $b = $string{1}; Expected result: ---------------- N/A Actual result: -------------- N/A