What is the variable interpolation ?

Posted by Community Admin on 04-Aug-2018 11:52

What is the variable interpolation ?

All Replies

Posted by Community Admin on 18-Jun-2012 00:00

What is the variable interpolation in PHP?

Posted by Community Admin on 18-Jun-2012 00:00

Hi Jeff,

Consider this case:

$yourVar = "a php forum";
$hello = "Unfortunately this is not $yourVar. We are glad to have you here though!";
echo $hello;

The result will be - "Unfortunately this is not a php forum. We are glad to have you here though!". In other words, a new data is made out of the two variables - $yourVar interpolates with $hello thus changes it. There are much better examples of variables interpolation in the php manuals, we don't pretend to be experts here :).

Welcome to our forums, we hope you enjoy your stay on the other side. 

All the best,
Georgi
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed