Re: speaking of control structures...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tom Worster wrote:

> On 5/6/09 6:56 AM, "Marcus Gnaß" <gonatan@xxxxxx> wrote:
> 
>> Tom Worster wrote:
>>> there's a control structure i wish php had: a simple block that you
>>> can break out of, e.g.
>> 
>> As Maarten pointed out you could use a function. Another alternative
>> is to use Exceptions which might be the most proper way to do it.
> 
> in a thread off-list i commented on the use of a function. here's what
> i said:

Shawn McKenzie already posted the right solution - did you miss it?


/Per

-- 
Per Jessen, Zürich (19.6°C)


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux