Learning PHP and MySQL

Example 3-21 Echoing the line and file predefined constants for a script called predefined_constants

<?php
echo  "Executing  line  ".    __LINE__  .  "  of  PHP  script  "  .  __FILE__  .  '.';
?>

Returns:

Executing line 2 of PHP script /home/www/html/oreilly/ch3/predefined_constants.php.

Posted by on 07/19 at 03:57 PM

Next entry: Example 03-22 PHP mathematical function usage

Previous entry: Example 03-20 Using a constant in your program

<< Back to main