note 91717 added to control-structures.goto
| From: | krux at thcnet dot net | Date: | Wed, 24 Jun 2009 00:23:52 +0000 |
| Subject: | note 91717 added to control-structures.goto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-157315@lists.php.net to get a copy of this message | ||
No. If you want to create a loop in your code you want to use either:
while,
http://us.php.net/manual/en/control-structures.while.php
do-while,
http://us.php.net/manual/en/control-structures.do.while.php
or even for:
http://us.php.net/manual/en/control-structures.for.php
You never want to use goto.
----
Server IP: 208.69.120.35
Probable Submitter: 68.224.8.97
----
Manual Page -- http://www.php.net/manual/en/control-structures.goto.php
Edit -- https://master.php.net/note/edit/91717
Del: integrated -- https://master.php.net/note/delete/91717/integrated
Del: useless -- https://master.php.net/note/delete/91717/useless
Del: bad code -- https://master.php.net/note/delete/91717/bad+code
Del: spam -- https://master.php.net/note/delete/91717/spam
Del: non-english -- https://master.php.net/note/delete/91717/non-english
Del: in docs -- https://master.php.net/note/delete/91717/in+docs
Del: other reasons-- https://master.php.net/note/delete/91717
Reject -- https://master.php.net/note/reject/91717
Search -- https://master.php.net/manage/user-notes.php