Guest User

Untitled

a guest
Jan 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. <?php
  2.  
  3. $value = 10;
  4. echo “Value is: ”, $value; // This is normal without Interpolation
  5. echo “Value is: $value”;
  6. echo “$value is good price of the product”; // if we write $valueis by mistake then it will show error
  7. echo “{$name}shows”; // in case we do not need space between variable and text then We can write with curly Brackets
  8. echo ‘Apple Price $ten’; // Single Quote will ignore string interpolation
  9. echo “ $value Apple Price \$ten”; // Here \ is a escape sequence
  10.  
  11. <?
Add Comment
Please, Sign In to add comment