Re: RFC: Removing PHP tags

From: Date: Sun, 01 Apr 2012 02:24:12 +0000
Subject: Re: RFC: Removing PHP tags
References: 1  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Removing PHP's native feature of being able to be easily embedded inside
HTML and other markup languages is absolutely retrograde. Of of the biggest
points in favor of PHP is that i'm able to easily do this:

<ul>
<?php foreach ($stuff as $item): ?>
<li><?php echo $item ?></li>
<?php endforeach; ?>
</ul>

Or this:

<?xml version="1.0" ?>
<store>
<?php foreach ($stuff as $item): ?>
<product><?php echo $item ?></product>
<?php endforeach; ?>
</store>

Without having to implement any slow-as-hell template language. It works
right out of the box. Using MVC as an argument for tag removal is a clear
disrespect to the language itself.


Thread (12 messages)

« previous php.internals (#59282) next »