What is the variable interpolation ?
What is the variable interpolation in PHP?
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.