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

GoTo

By Angela Bradley, About.com

Definition: You can use GoTo to skip over a section of code and go to the specified location. This only became available in PHP 5.3 so if it does not work for you, please check your PHP version. As this is not a function you don't need parenthesis ().
Also Known As: Go To
Examples:
<?php
goto a;
echo 'Hello';

a:
echo 'Goodbye';
?>
This would only output Goodbye.
Explore PHP / MySQL
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. PHP / MySQL
  4. PHP Functions
  5. PHP Go To - PHP Goto Control Structure

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

All rights reserved.