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.

6th Feb 2017, 2:33 PM
chen3241
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>"; ?>
6th Feb 2017, 2:43 PM
Igor Makarsky
Igor Makarsky - avatar
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>"; ?>
8th Feb 2017, 12:04 AM
chen3241