SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist
    Join Date
    May 2004
    Posts
    512
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    <?PHP vs. <?php: does it matter?

    This is probably one of the dumbest questions ever asked here, but I'd really like to know and did a search before ...

    In (X)HTML tags should be lowercase, but for PHP I often see <?PHP instead of <?php - even if the rest of the site's tags are all lowercase.

    Is there any reason to use uppercase for this tag? I guess no, or ...?

  2. #2
    SitePoint Evangelist djdykes's Avatar
    Join Date
    Feb 2005
    Location
    Chester, Cheshire
    Posts
    565
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nope you can use <% and ?> and that would be valid. depending if you php.ini was set up right...

    it doesn't make any different if its caps or not.

  3. #3
    SitePoint Enthusiast
    Join Date
    Jan 2005
    Location
    A dark place in my mind
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    but I wouldn't recommend using <% cause if you'd want to learn asp further on, you'd conflict with the two languages, so, stick with <?php

  4. #4
    SitePoint Evangelist
    Join Date
    May 2004
    Posts
    512
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a lot for your help!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •