Installing and configuring PHP Variable Handling Functions


In this page, we will discuss installing and configuring PHP Variable Handling functions.


PHP Variable Handling functions do not require any external library files.


Since PHP Variable Handling functions are part of the PHP core, they don't require any installation.

Runtime Configuration:

You don't need to add any directive in php.ini for running PHP Variable Handling functions.

Resource Types:

PHP Variable Handling functions have no defined resource types.

Predefined constants:

In the following table, we have given a list of constants which are part of the PHP core.

PHP Variable Handling function has no constants defined.

See also

PHP Function Reference

Previous: wordwrap
Next: debug_zval_dump

PHP: Tips of the Day

Returning JSON from a PHP Script

While you're usually fine without it, you can and should set the Content-Type header:


$data = /** whatever you're serializing **/;
header('Content-Type: application/json');
echo json_encode($data);

Ref : https://bit.ly/3el7asX