Distinguishing code blocks

Although <? and <% are available for use to enter PHP mode, their use is not encouraged for several reasons:

  • They are not enabled by default

  • They may not be available on other machines

  • <? is not XML-compliant

Always, always, always use <?php. Always - with no exceptions!

 

Next chapter: Output style >>

Previous chapter: Functions

Jump to:

 

Home: Table of Contents

Follow us on Identi.ca or Twitter

Username:   Password:
Create Account | About TuxRadar