1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

Echo () PHP Function


Definition: The echo () function is used to output the given argument. It can output all types of data and multiple outputs can be made with only one echo () command.

Do you use PRINT or ECHO in your PHP code? Share your answer!

 Echo "Hello"; 
 //Outputs a string 
 Echo $variable; 
 //Outputs a variable 
 Echo "Multiple things " . $on . " one line"; 
 //Outputs a string, then a variable, then a string. All are separated with a [.] period 
Related Video
Basic PHP Syntax
Using PHP With HTML
  1. About.com
  2. Technology
  3. PHP / MySQL
  4. PHP Functions
  5. Echo Function in PHP outputs

©2014 About.com. All rights reserved.