You are here: Re: PHP equiv of perl's last label or goto? « PHP Programming Language « IT news, forums, messages
Re: PHP equiv of perl's last label or goto?

Posted by Toby Inkster on 03/08/06 10:47

bobmct wrote:

> The PHP docs state that its break statement can take an optional
> parameter which represents the "number" of levels to break out of.
> Now this seems like it could work. However, I see a problem with
> ongoing maintenance if someone inserts or removes another level which
> would cause that number to be inaccurate.

The number of levels can be a variable rather than hard-coded, so there
might be scope to do something there, but it might be a bit nasty.

PHP's lack of "next" and "last" are a little irritating.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация