belongs to collection: PHP Basic Programs
In this PHP Code you will learn how to print string of string from variables on the webpage using print command?
<?php /*print string*/ print "Hello world\n"; /*print variable values*/ $text = "Sample text"; $lucky_number = 100; print "</br>"; print "Value of text is: " . $text . " Lucky number is: " . $lucky_number . "\n"; ?>
Output
Hello world Value of text is: Sample text Lucky number is: 100
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Source Code with Output to print text on webpage
Output
need an explanation for this answer? contact us directly to get an explanation for this answer