Predefined Constants in PHP

  •  __FILE__ The name of the script file being parsed. 
  •  __LINE__ The number of the line in the script being parsed. 
  •  PHP_VERSION The version of PHP in use. 
  •  PHP_OS The operating system using PHP.

<?
echo “<br>This file is “.__FILE__;
echo “<br>This is line number “.__LINE__;
echo “<br>I am using “.PHP_VERSION;
echo “<br>This test is being run on “.PHP_OS;
?>

About the author

Being the CEO and Founder of ClecoTech International, Mr. Ashish Prajapati is dedicated towards his aim of mentoring young startups into a full-fledged businesses. He is helping startups from America, Europe, India, and various other countries through proper guidance and the use of latest technologies to develop their innovation and ideas into definite realities.

Leave a Reply

Your email address will not be published. Required fields are marked *