Link Details

Link 902827 thumbnail
User 1071333 avatar

By phpfresher
via phpfresher.com
Published: Jan 09 2013 / 09:50

Although the major source of my content is php.net but it is very useful to know about the magic constant which sometime we ignore. Whether you read the magic constant from my site or the php.net its exact the same but only thing is you guys go through it. PHP provides a large number of predefined constants to any script which it runs. Many of these constants, however, are created by various extensions, and will only be present when those extensions are available, either via dynamic loading or because they have been compiled in. There are eight magical constants that change depending on where they are used. For example, the value of __LINE__ depends on the line that it’s used on in your script. These special constants are case-insensitive and are as follows:
  • 10
  • 0
  • 536
  • 330

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (10)



Voters Against This Link (0)



    Apache Hadoop
    Written by: Piotr Krewski
    Featured Refcardz: Top Refcardz:
    1. Play
    2. Akka
    3. Design Patterns
    4. OO JS
    5. Cont. Delivery
    1. Play
    2. Java Performance
    3. Akka
    4. REST
    5. Java