Posted On: Feb 22, 2018
The String Interpolation is the way of displaying the value of the variable by surrounding the variable in the double-quotes.
$var = “cool” Echo “the value is $var”
The above statement produces the ‘value is cool’. Here the $var is surrounded by double quotes when used in the echo statement. So, it prints the value of the variable instead of the variable name itself. It is called string interpolation.
Never Miss an Articles from us.