PHP Tags Tips

Every PHP developer know PHP tags is something like <?php ?>
but some developer use it like <? ?> so called PHP short tag.  but its only available if enabled using the short_open_tag php.ini configuration file directive, or if PHP was configured with the –enable-short-tags option).

Tips

Using short tags( <? ) should be avoided when developing applications or libraries that are meant for redistribution, or deployment on PHP servers which are not under your control, because short tags may not be supported on the target server. For portable, redistributable code, be sure not to use short tags.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s