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:
Add your comment