I dont get why this simple line of code does not work:
<?php
$someVariable = 0;
echo 'SomeVariable is $someVariable';
?>
It is printing out “SomeVariable is $someVariable” as opposed to the number 0. Is there something I am missing or some configuration option I have to enable?
That is because you need to use double quote instead.
php will not convert variables to their values when surrounded by single quotes