0
Where is the wrong?
<?php $string = "Hello World!"; $string2 = "Hi,\"man""; echo $string2; echo "<br />"; echo "<p>"Hello World,$string </p>"; // This is a single-line comment echo "<p>I am learning PHP!</p>"; echo "<p>This is my first program!</p>"; ?> There are some wrong but i don't know.
2 Réponses
+ 17
Here is the right code. There were some mistakes in the 3rd and 6th line.
<?php
$string = "Hello World!";
$string2 = "Hi,\"man\"";
echo $string2;
echo "<br />";
echo "<p>Hello World".$string."</p>";
// This is a single-line comment
echo "<p>I am learning PHP!</p>";
echo "<p>This is my first program!</p>";
?>
0
<?php
$string = "Hello World!";
$string2 = "Hi,\"man\"";
echo $string2;
echo "<br />";
echo "<p>Hello World,$string</p>";
// This is a single-line comment
echo "<p>I am learning PHP!</p>";
echo "<p>This is my first program!</p>";
?>