I noticed that vaiables within a string in PHP are not color coded as variables. Is this a bug or by design?
Variable color coding doesn't work:
echo "High: $ $above_mmr<br>Avg: $ $average_mmr<br>Low: $ $below_mmr<br>";
Variable color coding does work:
echo "High: $".$above_mmr."<br>Avg: $".$average_mmr."<br>Low: $".$below_mmr."<br";
Bug?
Moderator: kfury77
Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
Please try to follow these guidelines. This will help to receive faster and more accurate response.
- Check the Support section of the corresponding product first. Chances are you will find your answer there;
- Do not create new topics for already reported problems. Add your comments to the existing topics instead;
- Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
- Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
- Include the version number of the software you are using;
- This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Re: Bug?
This is by design.
But there exists a solution for this:
http://forums.blumentals.net/viewtopic. ... les#p15176
But there exists a solution for this:
http://forums.blumentals.net/viewtopic. ... les#p15176
Kind regards,
Gatis Avots
Gatis Avots
Re: Bug?
For several reasons, we are not planning to "fix it". Karlis might be able to tell you more why this is so (currently I do not know why such decision was made).
So there exists a workaround, which you can use if you need to highlight the variables inside a string.
So there exists a workaround, which you can use if you need to highlight the variables inside a string.
Kind regards,
Gatis Avots
Gatis Avots