More in this section

Forums / Developing with Sitefinity / What is the variable interpolation ?

What is the variable interpolation ?

2 posts, 0 answered
  1. Jeff
    Jeff avatar
    2 posts
    Registered:
    14 May 2012
    18 Jun 2012
    Link to this post
    What is the variable interpolation in PHP?
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    18 Jun 2012
    Link to this post
    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
2 posts, 0 answered