Utilizor
Contact Us

PHP Echo / Print

Outputting data.

PHP echo and print Statements

With PHP, there are two basic ways to get output: echo and print.

The PHP echo Statement

  • echo has no return value
  • echo can take multiple parameters (although such usage is rare)
  • echo is marginally faster than print

The PHP print Statement

  • print has a return value of 1 so it can be used in expressions
  • print can take one argument