pval entry; entry.type = IS_LONG; entry.value.lval = 5; / * defines $foo["bar"] = 5 * / hash_update(arr.value.ht ,"bar",sizeof("bar"), entry,sizeof(pval),NULL); / * defines $foo[7] = 5 * / hash_index_update(arr.value.ht,7, entry,sizeof(pval),NULL); / * defines the next free place in $foo[], * $foo[8], to be 5 (works like php2) * / hash_next_index_insert(arr.value.ht, entry,sizeof(pval),NULL);
pval entry; entry.type = IS_LONG; entry.value.lval = 5; / * définit $foo["bar"] = 5 * / hash_update(arr.value.ht ,"bar",sizeof("bar"), entry,sizeof(pval),NULL); / * définit $foo[7] = 5 * / hash_index_update(arr.value.ht,7, entry,sizeof(pval),NULL); / * définit la prochaine place libre dans $foo[], * $foo[8], qui sera 5 (comme en php2) * / hash_next_index_insert(arr.value.ht, entry,sizeof(pval),NULL);