Code accross multiple lines (PHP)

Uit De Vliegende Brigade
Ga naar: navigatie, zoeken

Ja dus. En je hebt er geen speciale tekens voor nodig (zoals " \" of zoiets in Bash)

<?php
#
# Test if commands can span multiple lines
##########################################
#
echo 
	"\n\n".
	"Here is the first line. ".

	"Here is the second line. ".
	
	# So much emptiness!

	"Here is the third line.\n\n";

Output:

strompf@dell2016$ php -f 04.php 


Here is the first line. Here is the second line. Here is the third line.

strompf@dell2016$