J Jess New member May 18, 2009 #1 i am trying to figure out what needs to be fixed in this PHP script: <?php print "<span style=\"font-weight: bold;\">Hello, world!</span>"; ?>
i am trying to figure out what needs to be fixed in this PHP script: <?php print "<span style=\"font-weight: bold;\">Hello, world!</span>"; ?>
I inetpgmr Guest May 18, 2009 #2 Nothing ... you could use the print command or echo command to achieve the same effect. Are you getting a particular error with that line? If you are it could be caused by another line of code ... not that one.
Nothing ... you could use the print command or echo command to achieve the same effect. Are you getting a particular error with that line? If you are it could be caused by another line of code ... not that one.
A Alakazam Guest May 18, 2009 #3 print = with parentheses print ("<span style=\"font-weight: bold;\">Hello, world!</span>"); or echo = without parentheses echo "<span style=\"font-weight: bold;\">Hello, world!</span>";
print = with parentheses print ("<span style=\"font-weight: bold;\">Hello, world!</span>"); or echo = without parentheses echo "<span style=\"font-weight: bold;\">Hello, world!</span>";