What is the difference between print and echo?
<?php
echo "Please don't make me say it... \n";
$you = print "Hello World!\n";
echo "Returning $you"; //Returning 1, assuming the print worked
?>
Comments on this Question/Answer
How can i highlight the existence of particular word from a given string.eg. string is........"this is my first program, that is going to be excute". Now problem is to highlight the existence of "is" in to whole string.By: Rimple, 05 Dec 2008 02:53:40
Reply to comments / post your own comment >>>
ASK A QUESTION
More strings PHP Questions
How do I make the first letter of a string uppercase?How do I extract the values of variables from a string?
How do I convert characters to HTML entities using PHP?
How do I convert relevant characters in a string to HTML entities?
How do I make the contents of a string lower case?
