If I were to store the following quote into a variable named $dog, how could I get this variable to print with both double and single quotes? The value of $dog would come from a mySQL database so I wouldn't be hardcoding the variable in the script.
He said, "Don't touch my dog's bone!"I tried messing with backslashes and forward slashes but didn't have any luck.PHP Code:<?php
echo"<input type=text name=doggy size=75 value='".$dog."'>";
?>




Reply With Quote