w3resource

Installing and configuring PHP Variable Handling Functions

Description

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

Requirements:

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

Installation:

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

Returns true if the given string is a palindrome, false otherwise

Example:

<?php
function tips_palindrome($string)
{
  return strrev($string) === (string) $string;
}

print(tips_palindrome('malayalam'));
print("\n");
print(tips_palindrome(151));

?>

Output:

1
1