use variable in echo statement code example Example: php variable in echo echo 'Hello '.$variableName.'!';