What does this statement for echo mean

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
qasim_353
Forum Newbie
Posts: 9
Joined: Sun Aug 07, 2011 8:41 pm

What does this statement for echo mean

Post by qasim_353 »

The echo() statement operates similarly to print(), except for two differences. First, it cannot
be used as part of a complex expression because it returns void, whereas print() returns a
Boolean. Second, echo() is capable of outputting multiple strings. Please explain with an example for both differences. Thanks
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: What does this statement for echo mean

Post by pickle »

Do your own classwork.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
genix2011
Forum Commoner
Posts: 74
Joined: Tue Aug 02, 2011 4:00 pm

Re: What does this statement for echo mean

Post by genix2011 »

php.net is your friend.

echo()
print()
Post Reply