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

Answer Posted / nikunj

echo() have multiple arguments whereas print() have one
arguments. echo() have not any return value whereas print()
return 0 or 1 as per success

Is This Answer Correct ?    83 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to copy a file?

568


Can you define an argument as a reference type?

558


In php, how to redirect from one page to another page?

523


Which parts of php are case sensitive?

504


How to include a file to a PHP page?

597






What is beforeRender() used?

641


What do you mean by core php?

498


What is the use of the function 'imagetypes()'?

553


Write a select query that will be displayed the duplicated site name and how many times it is duplicated?

581


Can I learn php in a month?

530


Do you know how can we check the value of a given variable is a number?

530


How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain

533


How to convert a string to lowercase in php?

579


How do you destroy a session?

510


What is array and function?

543