|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-10-21 10:16 UTC] jani@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 19:00:02 2025 UTC |
Description: ------------ The Variable variables in PHP don't work properly with multi-arrays. You should be able to display the value from an array key by joining the multi-array variable and the keys. Reproduce code: --------------- $results['rss']['channel']['item'][0]['title'] = "Hello there"; $a = "results"; $b = "['rss']['channel']['item'][0]['title']"; echo ${$a.$b}; Expected result: ---------------- I expect it to display "Hello there"; Actual result: -------------- Undefined variable: results['rss']['channel']['item'][0]['title']