next up previous contents
Next: php_iterator Up: Function Reference Previous: php_array::add_index   Contents

php_array::remove

#include "php_arr.h"

void 
php_array::remove(char *key);

void 
php_array::remove(long index);

Description: Remove key or index and its related value from the php_array. This is logically equivalent to calling either unset($php_array[$key]); or unset($php_array[$index]); in PHP. Calling remove on a key or an index that does not exist in the array does nothing.



Andrew Bosworth 2008-03-24