zero-perfoliate
zero-perfoliate

Author Topic: proper syntax  (Read 210 times)

Offline PerHaPs

  • New PHP Members
  • Posts: 1
  • Karma: +0/-0
proper syntax
« on: May 28, 2010, 08:37:40 PM »
are these the same and would both have same results? 

<p> <a href=’http://www.yahoo.com’ <?php print 'class="red"';?> > red text [/url]</p>
<p> <a href=’http://www.yahoo.com’ <?php print 'class="red"';?>> red text [/url]</p>

Offline Sergey Popov

  • PHP Helpers
  • ***
  • Posts: 31
  • Karma: +0/-0
    • Freelance PHP Developer
Re: proper syntax
« Reply #1 on: June 03, 2010, 08:51:58 AM »
Yes, these 2 are the same. Difference is in space, that does not affect HTML code in given place.
Refer to php documentation or PHP Help forum for more info and for answers to your questions