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 you check if a variable is set or not in PHP?How do I remove space from the start of a PHP string?
How do I replace a word in a string in PHP?
How do I calculate the metaphone of a string?
How can I remove spaces from around a string value?
