<?php echo '当前文件路径:'; echo __FILE__.'<br />'; //文件名 echo '当前行数:'; echo __LINE__.'<br>'; //编程里行数 echo '该PHP版本号:'; echo PHP_VERSION.'<br>'; //PHP版本 echo '操作系统:'; echo PHP_OS; //PHP操作系统 ?>
The above introduces the PHP self-study no00014 predefined constants, including the 0001 content. I hope it will be helpful to friends who are interested in PHP tutorials.