home support FAQ resources services partners contact us contact us
 Web Application Previous  Next  
 Tutorial

is_ref 0 means that this variable is not a reference; 1 means
that this variable is a reference to another variable.
refcount The number of references that exist for this variable.
For every new reference to the value stored in this
variable, this counter is increased by 1. For every lost
reference, this counter is decreased by 1.When the
reference counter reaches 0, no references exist to this
value anymore, which causes automatic freeing of the
value.

Table 9.6 Zend zvalue_value Structure

Entry Description

lval Use this property if the variable is of the type IS_LONG,
IS_BOOLEAN, or IS_RESOURCE.
dval Use this property if the variable is of the type
IS_DOUBLE.

str This structure can be used to access variables of the
type IS_STRING.The member len contains the string
length; the member val points to the string itself. Zend
uses C strings; thus, the string length contains a trailing
0x00.

ht This entry points to the variable’s hash table entry if the
variable is an array.
obj Use this property if the variable is of the type
IS_OBJECT.
Table 9.7 Zend Variable Type Constants
Constant Description
IS_NULL Denotes a NULL (empty) value.
IS_LONG A long (integer) value.
IS_DOUBLE A double (floating point) value.
IS_STRING A string.
IS_ARRAY Denotes an array.
IS_OBJECT An object.
IS_BOOL A Boolean value.
IS_RESOURCE A resource (for a discussion of resources, see the
appropriate section below).
IS_CONSTANT A constant (defined) value.
Entry Description
Previous  Next  
Link Partners: Asia florist, Flowers to India, Hong kong flowers, Site submit, Cheap web hosting, China florist, Japan florist