Re: variable variable syntax change?

From: Date: Fri, 15 Apr 2016 08:06:00 +0000
Subject: Re: variable variable syntax change?
Groups: php.general 
Request: Send a blank email to php-general+get-325543@lists.php.net to get a copy of this message
On 15 Apr 2016 at 00:54, Jeffry Killen <jekillen@prodigy.net> wrote: > Hi; > > Q: Did the variable variable syntax change in php v 5.6x? > > I am aware it has changed in v 7.0 > > (or is there probably something else wrong with my code? > Something has gone haywire and I am not getting any errors > accept for the browser complaining the css is sent as text/plain instead > of text/css. That is because the reference to the css source is not > happening. > That is because the variable variable references are failing, > apparently) > > I have code that has been working fine until I got a copy of the site > and installed it on a local FreeBSD server with php v 5.6.0 > > There are references to an array containing array names as strings > that are supposed to fetch the values in the arrays indicated by array > name as a string. > > Further, these are associative arrays that can be used as a database to > access values by string index. > > $_subLst = ${self::$_arrayNames[$_dep]}; > print "sub: ".$_subLst."\n"; //// $_subLst is empty Is a header being put out? Something like: header ('Content-Type: text/css; charset=utf-8'); -- Cheers -- Tim

« previous php.general (#325543) next »