I'm new learning php, but i'm stuck in the very beginning . Whatever method I try in PHP but I could not display variable data in output.. below is code which is copy pasted from internet, even in that I cannot see output of $username...pls help me!
<html>
<body>
<h1>Hi Jacob</h1>
<h3>Demonstrates using a variable</h3>
<?php
$userName = "Jacob";
print Hi, $userName;
?>
</body>
</html>
In output it " Hi, $username " is getting displayed. not the data of variable
.phpextension? Are you running this from WWW or local computer? Is PHP installed, the list goes on...print 'Hi ' . $userName;