FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » The goto statement in PHP
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: The goto statement in PHP [message #185785 is a reply to message #185732] Fri, 09 May 2014 08:30 Go to previous messageGo to previous message
Arno Welzel is currently offline  Arno Welzel
Messages: 317
Registered: October 2011
Karma:
Senior Member
Am 05.05.2014 15:50, schrieb richard:

> In Liberty BASIC (LB) we also have branched goto labels.
> As I was reading the goto manual on php.net I see where they make no
> distinction between a label and a variable.

Of course they do

<http://www.php.net/manual/en/control-structures.goto.php>

Example on that page:


<?php
goto a;
echo 'Foo';

a:
echo 'Bar';
?>

And even you should remember, that variables in PHP start with "$", so
"a$" would be the variable and "a:" the label.



--
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
http://fahrradzukunft.de
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: part two same issue - unwanted empty values in array
Next Topic: richard
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 08:57:07 GMT 2024

Total time taken to generate the page: 0.04206 seconds