Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Garry Jones
April 19, 2006, 10:36 pm
rate this thread
I have seen different types of delimiters to note php code.
<?php and ?>
<? and ?>
However the code
<?= and ?>
is marked up by Dreamweaver as php delimiters. (ie not part of the code
itself). I have noticed that the = is necessary sometimes but would like an
explanation about its use.
Whats the difference between these codes? Are there any limitations on
browser versions, platforms, or other user settings that favour either pair
Re: php delimiters
This was discussed quite recently so rewind your news for the details,
but in summary:
<?php and <? are equivalend if and only if short_open_tag is set to 'on'
in the php.ini file.
Similarly, <?php echo and <?= are equivalent with the same restriction.
Use of the short tags can cause problems with XML parsers, application
portability and the future direction of PHP, so get used to using the
long forms. i.e. use <?php and <?php echo.
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum