SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    Founder of Primal Skill Ltd. feketegy's Avatar
    Join Date
    Aug 2006
    Posts
    482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question No Alternative Syntax in PHP 6

    I heard it somewhere, but I couldn't find the article that there won't be an alternative syntax in PHP 6.

    Is this true?

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    What alternative syntax are you referring to?

  3. #3
    Founder of Primal Skill Ltd. feketegy's Avatar
    Join Date
    Aug 2006
    Posts
    482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To this one: http://www.php.net/manual/en/control...ive-syntax.php

    if (): ... endif;
    foreach: .... endforeach;
    etc..

  4. #4
    SitePoint Zealot
    Join Date
    Mar 2008
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not good, I'm using this syntax in my templates (it's easier to see <?php endforeach; ?> than <?php } ?>)

  5. #5
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by krzyk View Post
    Not good, I'm using this syntax in my templates (it's easier to see <?php endforeach; ?> than <?php } ?>)
    If it's anything like PHP4->5 was, you won't have to change anything for at least another 5-7 years.

    PHP 6, then its widespread adoption by web hosts, is a *long* way off.

  6. #6
    SitePoint Enthusiast yangyang's Avatar
    Join Date
    Jun 2007
    Location
    kavoir.com
    Posts
    96
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    95&#37; of wordpress themes use the longhand alternative syntax as it's default in the default theme.
    I blog about making websites, technically.
    Online image converter - all formats that you can think of.

  7. #7
    SitePoint Wizard silver trophy kyberfabrikken's Avatar
    Join Date
    Jun 2004
    Location
    Copenhagen, Denmark
    Posts
    6,157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I haven't heard about any such thing. You can see the planned changes for php 6.0 here:
    http://wiki.php.net/todo/php60

  8. #8
    Founder of Primal Skill Ltd. feketegy's Avatar
    Join Date
    Aug 2006
    Posts
    482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have to search for that article.

    It came from a pretty reliable source...

  9. #9
    Web Professional
    Join Date
    Oct 2008
    Location
    London
    Posts
    862
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    AFAIK it was an error in documentation. Alternative syntax won't be removed.

  10. #10
    Founder of Primal Skill Ltd. feketegy's Avatar
    Join Date
    Aug 2006
    Posts
    482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well. That's cool.


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
  •