next up previous contents
Next: php_tok Up: Function Reference Previous: php_stl::call_uint_vector   Contents

php_type

#include "php_arr.h"

typedef zend_uchar php_type;

Description: This is just a wrapper for an unsigned char type and it represents the possible data types for values in PHP. This is particularly useful when working with PHP arrays since any key or value can be of nearly any type. The following table (reproduced from Table 2) details the possible return types as well as which types are supported in C++ and which are not.


Supported Unsupported
IS_LONG IS_NULL
IS_DOUBLE IS_OBJECT
IS_STRING IS_RESOURCE
IS_BOOL IS_CONSTANT
IS_ARRAY anything else



Andrew Bosworth 2008-03-24