Jump to content

PHP code not outputting right


cybermind

Recommended Posts

Hello :-)

This PHP code:

 
<html>
<?php
echo "<h2>PHP is Fun!</h2>";
echo "Hello world!<br>";
echo "I'm about to learn PHP!<br>";
echo "This ". "string ". "was ". "made ". "with multiple parameters.";
?>
</html>
 
outputs this:
 
PHP is Fun!"; echo "Hello world!
"; echo "I'm about to learn PHP!
"; echo "This ". "string ". "was ". "made ". "with multiple parameters."; ?>
 
And I cannot figure out why :-(
Link to comment
https://forums.phpfreaks.com/topic/295758-php-code-not-outputting-right/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.