rgempty
The WordPress Core rgempty function.
Description
Parameters (2)
- 0. $name (string)
- The name.
- 1. $array — Optional. (null) =>
null
- The array.
Usage
if ( !function_exists( 'rgempty' ) ) { require_once '/lib/gf-utility-functions.php'; } // The name. $name = ''; // The array. $array = null; // NOTICE! Understand what this does before running. $result = rgempty($name, $array);
Defined (1)
The function is defined in the following location(s).
- /lib/gf-utility-functions.php
- function rgempty ( $name, $array = null ) {
- if ( ! $array )
- $array = $_POST;
- $val = rgget( $name, $array );
- return empty( $val );
- }