PHP Interpolation

Here i would like to discuss about interpolation.

For example one can write as

echo $tireqty. 'tires <br/>';

We can also do in double quotation ie 

echo "$tireqty. tires <br/>";

The second statement is also the same as first statement. This way of treating the variable as a string in the double quotation is known as interpolation. This is not same as

echo '$tireqty. tires <br/>';  - This gives the exact value of what is there in the single quotation.

 


Comments (0)

Post a Comment
* Your Name:
* Your Email:
(not publicly displayed)
Reply Notification:
Approval Notification:
Website:
* Security Image:
Security Image Generate new
Copy the numbers and letters from the security image:
* Message:

Email to Friend

Fill in the form below to send this blog to a friend:

Email to Friend
* Your Name:
* Your Email:
* Friend's Name:
* Friend's Email:
* Security Image:
Security Image Generate new
Copy the numbers and letters from the security image
* Message: