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

SQL injection that gets around mysql_real_escape_string()

Consider the following query:

$iId = mysql_real_escape_string("1 OR 1=1");    
$sSql = "SELECT * FROM table WHERE id = $iId";

mysql_real_escape_string() will not protect you against this. The fact that you use single quotes (' ') around your variables inside your query is what protects you against this. The following is also an option:

$iId = (int)"1 OR 1=1";
$sSql = "SELECT * FROM table WHERE id = $iId";

Ref : https://bit.ly/32q3bJ7