print

Outputs one or more strings.

 

Provides a success/fail return value.

 

Not necessary to use ( parentheses ), but highly recommended.

 

<?php
	$myVar = "London" ;

	print ("I live in $myVar") ; //interpolated

	print ('I live in $myVar') ; //literall
?>

Displays:

I live in London
I live in $myVar

 

Leave a Reply