array functions
| From: | gareth at fission dot org dot uk | Date: | Sat, 06 Nov 2004 02:58:58 +0000 |
| Subject: | array functions | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-1588@lists.php.net to get a copy of this message | ||
Hi,
Having a bit of a problem working out how to create arrays.
Basically, I've got a library function which returns a char **flist
now, what I want to do is loop through this, and for each entry insert an entry into a php
accessable array.
From what I can see from the docs - I need to do:
int font_list = 1;
array_init(font_list);
/*for loop here*/ {
add_next_index_stringl(font_list,flist[i],strlen of flist[i],0);
}
Does that look right, or have I totally misunderstood the docs ?