I have db with this string content:
[$3] [$ 3] [$3.2]
Need to echo it as it is.
When try to echo
echo "[$3] [$ 3] [$3.2]";
got this:
[] [$ 3] [.2]
Tried urlencode, htmlspecialchars, but didn't succeed.
How do I echo and get this?
[$3] [$ 3] [$3.2]
EDIT:
single quotes is not giving wanted result.
echo '[$3] [$ 3] [$3.2]';
[] [$ 3] [.2]
My php version is 5.2.14 and I am using Joomla.
EDIT2:
I figured out, the reason it's not working with single quotes is because of Joomla + Jumi. If I use pure php - it works ok.