|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-04-28 16:53 UTC] jhdxr@php.net
-Status: Open
+Status: Wont fix
[2016-04-28 16:53 UTC] jhdxr@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 07:00:01 2025 UTC |
Description: ------------ When creating a variable variable from an array, php identifies the string as an array in php 7, but not in previous versions. Test script: --------------- <?php $content = [ 'layout' => 'heading' ]; $heading = function () { return "Hi"; }; $layout = "heading"; echo $$layout(); // Works echo $$content['layout'](); // Doesnt work