What is the Diff. Between echo() and Print() in PHP?

Answer Posted / ramesh kumar jayaraman

In Php echo is a statement..it doesn't return any
value...And It is faster
because it does not return any value, but print which
always returns 1 and 0.

The print acts like a function and it can be used in complex
expressions.

but echo can not be used in this way.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you get the size of an image in PHP?

548


Does php need to be installed?

509


Tell me what is the difference between exception::getmessage and exception::getline?

514


List few sensible functions in PHP?

572


Why php was called as personal home page?

545






What is an associative array?

559


What is apache and php?

495


What is mysql_fetch_array?

525


Do you know how to declare an array in php?

548


How to create an array from php string?

529


How to do single and multi line comment in php?

562


How to check your php installation?

514


What is slim framework?

509


How php statement is different from php script?

540


Which function would you use to insert a record into a database in php?

565