# Removing if: endif; syntax

- Thread: https://externals.io/message/27809
- Original archive: https://news-web.php.net/php.internals/27809
- Started by Brian Moon on 2007-02-05T17:32:24+00:00
- Messages: 4
- 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

---

## #27809 — Brian Moon — 2007-02-05T17:32:24+00:00

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

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. =)

-- 

Brian Moon
-------------
http://dealnews.com/
It's good to be cheap =)

---

## #27810 — Stefan Walk — 2007-02-05T17:36:58+00:00

URL: https://externals.io/message/27809#27810 · In reply to: #27809

Please don't. <?php endif ?> reads much better than <?php } ?> in templates.

Regards,
Stefan

---

## #27827 — Robert Cummings — 2007-02-05T20:27:14+00:00

URL: https://externals.io/message/27809#27827 · In reply to: #27810

> Please don't. <?php endif ?> reads much better than <?php } ?> in templates.

Says you :) But I don't think it should be removed either. Editor's have
no business defining what should and should not be useful in a language.

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

---

## #27847 — Andi Gutmans — 2007-02-06T05:08:16+00:00

URL: https://externals.io/message/27809#27847 · In reply to: #27809

I think removing it at this stage is really not an option. It doesn't hurt anyone and many find it beneficial inside embedded HTML.

Andi 

> -----Original Message-----
> From: Brian Moon [mailto:brianm@dealnews.com] 
> Sent: Monday, February 05, 2007 9:32 AM
> To: internals@lists.php.net
> Subject: [PHP-DEV] Removing if: endif; syntax
> 
> 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. =)
> 
> -- 
> 
> Brian Moon
> -------------
> http://dealnews.com/
> It's good to be cheap =)
> 
> --
>  To 
> unsubscribe, visit: http://www.php.net/unsub.php
