1. Home
  2. Computing & Technology
  3. PHP / MySQL

Print () PHP Function

By Angela Bradley, About.com

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
?>

Explore PHP / MySQL

More from About.com

  1. Home
  2. Computing & Technology
  3. PHP / MySQL
  4. PHP Functions
  5. PHP Print - Print PHP - PHP Print Function

©2008 About.com, a part of The New York Times Company.

All rights reserved.