php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #12900 Don't remove Alternate Syntax! Please!
Submitted: 2001-08-22 11:16 UTC Modified: 2002-02-09 23:51 UTC
From: coyote at i-hwy dot net Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.6 OS: All
Private report: No CVE-ID: None
 [2001-08-22 11:16 UTC] coyote at i-hwy dot net
I just noticed a message under "Alternative syntax for 
control structures" indicating it was deprecated as of PHP4 
and might disappear entirely!

PLEASE don't!

I make EXTENSIVE use of this feature, and far from making 
unreadable code, it enables me to MUCH more easily keep 
track of everything! I have LOTS of scripts that go back 
and forth from PHP to HTML, and I would go nuts if I could 
not use the alternate control structures to keep stuff 
organized and neat, especially with if statements and for 
loops.

The alternate structures enable me to cogently allow code 
to be passed with a minimum of echo commands, and make it 
much easier for me to go back and forth between my code 
editor and Dreamweaver, which I use for design and layout. 
The alternate structures show up as discrete script tags, 
and remain intact, while I am able to edit the appearance 
of the html as I wish. If you remove this functionality, 
Dreamweaver and other WYSIWYG editors may have no good way 
of knowing where code should end and design begin.I'll be 
cutting and pasting and pulling my hair out.

There's a lot of people attempting to convince Dreamweaver 
to provide direct suport for PHP and MySQL the way it does 
for ASP/MS-SQL/Cold Fusion, etc. Since it's major web dev 
package, that would be good for PHP, I think. I suspect 
that removing the alternate syntax might make this harder.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-09 23:51 UTC] jimw@php.net
the documentation was wrong. the syntax is not deprecated.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 14:01:30 2024 UTC