Image may be NSFW.
Clik here to view.
PHP print command is similar to PHP echo command. Infact print command is old and traditional way to print some data in PHP.
People generally think that there is some difference between echo and print command. And what command should be preferred?
Using either of the command do not make any thing change. You can either use echo command or print command. But echo command is preferred over print command.
Example:
<?php print "hello using print command in double quotation mark. <br />"; print 'hello using print command using single quotation mark. <br />'; print ('hello again using print with bracket <br />'); print ("hello again using print with bracket and double quote"); ?>
Please refer to echo command to read more: