# Removing if: endif; syntax

- Thread: https://externals.io/message/27853
- Original archive: https://news-web.php.net/php.internals/27853
- Started by Ford on 2007-02-06T14:12:46+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #27853 — Ford — 2007-02-06T14:12:46+00:00

URL: https://externals.io/message/27853#27853

> Reading the array thread, someone mentioned having several ways of
> doing things.  One of their examples was the if: endif; syntax.
> Forgive me if this has been discussed, but has anyone proposed
>   removing that for PHP6? Seems like the perfect time to do it.  Its
> not recommended.  Editors that check PHP syntax warn about it.  It
> just seems like a no brainer. =) 

Please don't.  I have several tens of thousands of lines of code using this syntax, and I really, really would not want to have to rewrite them into the less readable, less maintainable pure curly brackets form (which I hate with a passion!).

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: m.ford@leedsmet.ac.uk
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 


To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm
