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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access