PHP Color : Array in String Problem
Submitted by Tuesday, 10 April, 2007 - 15:55
on
When you use an array inside of double-quotes in PHP, the brackets cause the variable highlighting to stop.
For example, the following statement:
$agi->exec("Playback hip/spons/$row[cid]");
The text "$row[cid]" should be blue, using the standard color scheme. Instead, however, only "$row" is blue and "[cid]" is pink like the rest of the string.
I'm using the latest version of the php.xml file from the repository.
I'd try to fix this myself, but don't feel comfortable enough with regular expressions to tackle it.
Thanks,
Joel
For example, the following statement:
$agi->exec("Playback hip/spons/$row[cid]");
The text "$row[cid]" should be blue, using the standard color scheme. Instead, however, only "$row" is blue and "[cid]" is pink like the rest of the string.
I'm using the latest version of the php.xml file from the repository.
I'd try to fix this myself, but don't feel comfortable enough with regular expressions to tackle it.
Thanks,
Joel