Services webmasters
Partenaires
Jeux concours gratuits
 
Créer des variables
<<<
API Zend pour les tableaux associatifs API Zend pour les tableaux indexés (Partie 1)
>>>

8.10.6 Tableaux
8.10 Créer des variables
8 Développer PHP 4.0
 Manuel PHP

->API Zend pour les tableaux associatifs
API Zend pour les tableaux indexés (Partie 1)
API Zend pour les tableaux indexés (Partie 2)
Ajouter un élément dans un tableau associatif
Ajouter un élément dans un tableau indexé

Fonction Description
add_assoc_long(zval *array, char *key, long n); Ajoute un élément de type entier.
add_assoc_unset(zval *array, char *key); Ajoute un élément indéfini.
add_assoc_bool(zval *array, char *key, int b); Ajoute un élément de type booléen.
add_assoc_resource(zval *array, char *key, int r); Ajoute un élément de type ressource.
add_assoc_double(zval *array, char *key, double d); Ajoute un élément de type nombre à virgule flottante.
add_assoc_string(zval *array, char *key, char *str, int duplicate); Ajoute un élément de type chaîne de caractères. L'option duplicate indique si le contenu de la chaîne doit être copié en mémoire interne Zend ou pas.
add_assoc_stringl(zval *array, char *key, char *str, uint length, int duplicate); Ajoute une chaîne, tout en en précisant la taille. Sinon, se comporte comme add_assoc_string .
<< API Zend pour les tableaux associatifs >>
Créer des variables Tableaux API Zend pour les tableaux indexés (Partie 1)
Services webmasters
Les manuels
 
CoursPHP.com - Reproduction interdite -