James Moore wrote: > It isnt a question of technical reasons its a question > of keeping the language clear, readable and concise.
I agree. > Adding more magic functions here and there does not do > that, lets leave it as it is and discourage people > from using it, it makes code less obvious. No objection to discourage use of <?, <?=,<% and <%= if there is open tag with echo. > PHP is pretty good at being self documenting, one of the aims of > any Higher level language and this syntax is ambiguios and > unclear as to what exactly it does. <?php= is less ambigiuos than <?= or <%=. Lack of <?php= is encouraging use of <%= or <?=. IMHO. Some people, including me, prefer to use open tag with echo since it looks better on source *mostly* written in HTML. We use template feature came with WISWYG HTML editor. Almost all php values and ouputs are printed by open tag with echo. Getting rid of template handling burden from PHP improves performance and makes collaboration with HTML designer easier, since templates and pages generated are almost complete HTML. It's possible without open tag with echo, though. I'm not sure how others feels, but it looks better and easier to read for me if there is open tag with echo... With "<?php echo" or "<?php print", it seems I need extra step in my brain to read.:) Following HTML/PHP source is very simpile, but you might be able to see the difference. For complex HTML/CSS with PHP, the difference is obvious to me, at least. <html> <head> <title><?php= CurrentTitle() ?></title> </head> <body> <table> <tr> <td colspan="2"><?php= LoginStatus() ?></td> </tr> <tr> <td colspan="2"><?php= $Message ?></td> </tr> <tr> <td>Login Name</td> <td><?php= $LoginName ?></td> </tr> <tr> <td>First Name</td> <td><?php= $FirstName ?></td> </tr> <tr> <td>Last Name</td> <td><?php= $LastName ?></td> </tr> <tr> <td>Login Options</td> <td><?php= $LoginOptions ?></td> </tr> </table> </body> </html> With "<?php echo", it seems I need extra step in my brain to read. It may be related that I read/write Kanji. I guess it depends on how you search patterns in text in your brain... <html> <head> <title><?php echo CurrentTitle() ?></title> </head> <body> <table> <tr> <td colspan="2"><?php echo LoginStatus() ?></td> </tr> <tr> <td colspan="2"><?php echo $Message ?></td> </tr> <tr> <td>Login Name</td> <td><?php echo $LoginName ?></td> </tr> <tr> <td>First Name</td> <td><?php echo $FirstName ?></td> </tr> <tr> <td>Last Name</td> <td><?php echo $LastName ?></td> </tr> <tr> <td>Login Options</td> <td><?php echo $LoginOptions ?></td> </tr> </table> </body> </html> Since there is no <?php=, I use <%= as follows currently. It works fine, but it's not portable. <% is not enabled by default. Lack of <?php= is encouraging use of <%= at least for me. <html> <head> <title><%= CurrentTitle() %></title> </head> <body> <table> <tr> <td colspan="2"><%= LoginStatus() %></td> </tr> <tr> <td colspan="2"><%= $Message %></td> </tr> <tr> <td>Login Name</td> <td><%= $LoginName %></td> </tr> <tr> <td>First Name</td> <td><%= $FirstName %></td> </tr> <tr> <td>Last Name</td> <td><%= $LastName %></td> </tr> <tr> <td>Login Options</td> <td><%= $LoginOptions %></td> </tr> </table> </body> </html> -- Yasuo Ohgaki _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]