1. Computing

Discuss in my forum

Print () PHP Function

By , About.com Guide

Definition: The print () function is used to output the given argument. It can output all types of data and multiple outputs can be made with only one print () command.
Examples:
<?php 
 Print "Hello"; 
 //Outputs a string 
 Print $variable; 
 //Outputs a variable 
 Print "Multiple things " . $on . " one line"; 
 //Outputs a string, then a variable, then a string. All are separated with a [.] period 
 ?>

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

Top Related Searches line outputs code share php code lt
  1. About.com
  2. Computing
  3. PHP / MySQL
  4. PHP Functions
  5. PHP Print - Print PHP - PHP Print Function

©2013 About.com. All rights reserved.