Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #13552

Re: The goto statement in PHP

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Arno Welzel <usenet@arnowelzel.de>
Newsgroups comp.lang.php
Subject Re: The goto statement in PHP
Date Fri, 09 May 2014 10:30:54 +0200
Lines 31
Message-ID <536C923E.9030502@arnowelzel.de> (permalink)
References <12m67qcdacclw.zdjrtjbgfn8m$.dlg@40tude.net>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-Trace individual.net nW6UONIIikoqxb/ce2eZ6woo6rCjwaicwQ4+M86XATgEQHUZZR
Cancel-Lock sha1:v0kjXIilz2PieL9HCLumxJbhY4I=
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0
In-Reply-To <12m67qcdacclw.zdjrtjbgfn8m$.dlg@40tude.net>
Xref csiph.com comp.lang.php:13552

Show key headers only | View raw


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

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

The goto statement in PHP richard <noreply@example.com> - 2014-05-05 09:50 -0400
  Re: The goto statement in PHP Jerry Stuckle <jstucklex@attglobal.net> - 2014-05-05 10:27 -0400
    Re: The goto statement in PHP richard <noreply@example.com> - 2014-05-05 11:08 -0400
      Re: The goto statement in PHP Jerry Stuckle <jstucklex@attglobal.net> - 2014-05-05 11:33 -0400
        Re: The goto statement in PHP Tim Streater <timstreater@greenbee.net> - 2014-05-05 16:44 +0100
      Re: The goto statement in PHP Doug Miller <doug_at_milmac_dot_com@example.com> - 2014-05-06 00:57 +0000
        Re: The goto statement in PHP Richard Yates <richard@yatesguitar.com> - 2014-05-05 19:06 -0700
          Re: The goto statement in PHP Doug Miller <doug_at_milmac_dot_com@example.com> - 2014-05-06 17:23 +0000
    Re: The goto statement in PHP Graham Hobbs <ghobbs@cdpwise.net> - 2014-05-07 11:13 -0400
      Re: The goto statement in PHP The Natural Philosopher <tnp@invalid.invalid> - 2014-05-07 20:07 +0100
        Re: The goto statement in PHP Tim Streater <timstreater@greenbee.net> - 2014-05-07 20:16 +0100
  Re: The goto statement in PHP Norman Peelman <npeelman@cfl.rr.com> - 2014-05-06 22:02 -0400
  Re: The goto statement in PHP Arno Welzel <usenet@arnowelzel.de> - 2014-05-09 10:30 +0200
    Re: The goto statement in PHP Arno Welzel <usenet@arnowelzel.de> - 2014-05-09 12:00 +0200
      Re: The goto statement in PHP Mi Na <ya12983@mail.com> - 2021-07-23 00:55 -0700

csiph-web