Why is PHP not replacing the variable in string? [closed]

Solution 1:

That is because you need to use double quote instead. php will not convert variables to their values when surrounded by single quotes

<?php
$someVariable = 0;
echo "SomeVariable is $someVariable";
?>

Solution 2:

the single quote's doesn't process in PHP, you must use variable in double quotes.