Easy Tutorial
❮ Func String Rtrim Php Install ❯

PHP defined() Function

PHP Misc Reference Manual

Example

Check if a constant exists:


Definition and Usage

The defined() function checks if a constant exists.


Syntax

Parameter Description
name Required. Specifies the name of the constant to check.

Technical Details

Return Value: Returns TRUE if the constant exists, otherwise returns FALSE.
PHP Version: 4+
--- ---
❮ Func String Rtrim Php Install ❯