Close sidebar

Technical question, answer please?

Ques. What is the use of "echo" in php?

  • Aparna
  • 1229 Views
  • 4 Answers
4 Answers
  • echo in php is used to print the statements to the output screen.echo has no return valuebr /eg:br /echo "Hello";


  • PHP echo and strongprint Statements/strong. echo and strongprint/strong are more or less the same. They are both used to output data to the screen. The differences are small: echo has no return value while strongprint/strong has a return value of 1 so it can be used in expressions.


  • right


  • It is used to print a data in the webpage, Example: <?php echo 'Car insurance'; ?> , The following code print the text in the webpage


Practice Mock Test
yahoo