PHP Code to print text using the echo command

Right now you will figure out how to print a string of string from variables on the site page utilizing reverberation direction?

Source Code with Output to print a message on-site page

<?php
	/*print string*/
	echo "Hello world\n";
	
	/*print variable values*/
	$text="Sample text";
	$lucky_number=100;
	
	echo "</br>";
	
	echo "Value of text is: ".$text." Lucky number is: ".$lucky_number."\n";
?>

Output

Hello world
Value of text is: Sample text Lucky number is: 100 

Leave a Comment

error: Alert: Content is protected!!