View Full Version : about echo

11-14-2010, 03:06 PM
Hi all!
I am very eager to learn php. I am trying to learn by myself with the help of various learning site and forum . As a new in this field i am confused about the term "echo". i searched for it online but still it is not clear to me . would you friend help me to know about it ? and the use about it .


Phil Jackson
11-14-2010, 04:21 PM
echo is the same as print, except the echo cannot return boolean.

echo "foo";
print "foo";

echo( print 'foo' ? "true" : "false" );


11-14-2010, 10:02 PM
the manual is always a good place to start: http://php.net/echo