Overview
This chapter contains functions for the following tasks:
Working with constants
constant() Returning the value of a constant
define() Defining a named constant
defined() Checking whether a given named constant exists
Ending script execution
die() Outputting a message and terminating the current script
exit() Terminating the current script
Evaluating strings as PHP code
eval() Evaluating a string as PHP code
Retrieving information about the capabilities of a browser
get_browser() Telling what the user’s browser is capable of
Performing syntax highlighting for PHP
highlight_file() Syntax highlighting of a file
highlight_string() Syntax highlighting of a string
show_source() Syntax highlighting of a file
Parsing IPTC blocks
Get PHP Functions Essential Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.