Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $value = 10;
- echo “Value is: ”, $value; // This is normal without Interpolation
- echo “Value is: $value”;
- echo “$value is good price of the product”; // if we write $valueis by mistake then it will show error
- echo “{$name}shows”; // in case we do not need space between variable and text then We can write with curly Brackets
- echo ‘Apple Price $ten’; // Single Quote will ignore string interpolation
- echo “ $value Apple Price \$ten”; // Here \ is a escape sequence
- <?
Add Comment
Please, Sign In to add comment