display dollar sign in php - PHP Views : 2011
Tagged in : PHP
0 0
Send mail
display dollar sign in php:

Normally if you use '$' in php it considers as a variable declaration. In case if you want to display it as a string then use '\' in front of the dollar sign as,

<?php echo " Dollar Sign - \$"; ?>


results as,
Dollar Sign - $
By Ramya, On - 2010-11-09



    Login to add Comments .