Double-quoted strings : Quotation « String « PHP






Double-quoted strings

 
<?
print "I've gone to the store.";
print "The sauce cost \$10.25.";
$cost = '$10.25';
print "The sauce cost $cost.";
print "The sauce cost \$\061\060.\x32\x35.";
?>
  
  








Related examples in the same category

1.Double quotation marks allow the parsing of variables
2.Double-quoted string escape sequences
3.If you use single quotation marks to enclose the same string, the variable is not substituted:
4.Using forward slashes on Windows
5.Fixing quote escaping in backreference replacements
6.It is safe to use non-escaped Windows-style filenames in your single-quoted strings
7.Various special characters in string assignments