Re: [PHP-DEV] transversing associative arrays from C

2011-08-25 Thread Aaron Gray
Thanks ! "Xinchen Hui" wrote in message news:7256329410255948429@unknownmsgid... hi every api has lots of 'samples' ,that are the standard extensions in src/ext/* :) Thanks Sent from my iPhone 在 2011-8-26,11:20,Aaron Gray 写道: Hi Stas, "Stas Malyshev" wrote in message news:4e56f0d

Re: [PHP-DEV] transversing associative arrays from C

2011-08-25 Thread Xinchen Hui
hi every api has lots of 'samples' ,that are the standard extensions in src/ext/* :) Thanks Sent from my iPhone 在 2011-8-26,11:20,Aaron Gray 写道: > Hi Stas, > > "Stas Malyshev" wrote in message > news:4e56f0d6.20...@sugarcrm.com... >> Hi! >> >> On 8/25/11 5:52 PM, Aaron Gray wrote: >>> T

Re: [PHP-DEV] transversing associative arrays from C

2011-08-25 Thread Aaron Gray
Hi Stas, "Stas Malyshev" wrote in message news:4e56f0d6.20...@sugarcrm.com... Hi! On 8/25/11 5:52 PM, Aaron Gray wrote: Thinking about it what I really want to do is see if a key exists in an array and get its type to see if it is BOOL and that it is TRUE. For this, you will need to call z

Re: [PHP-DEV] transversing associative arrays from C

2011-08-25 Thread Stas Malyshev
Hi! On 8/25/11 5:52 PM, Aaron Gray wrote: Thinking about it what I really want to do is see if a key exists in an array and get its type to see if it is BOOL and that it is TRUE. For this, you will need to call zend_hash_find (or zend_symtable_find if there's a possibility of keys like "0" th

Re: [PHP-DEV] transversing associative arrays from C

2011-08-25 Thread Aaron Gray
"Christopher Jones" wrote in message news:4e56e662.90...@oracle.com... On 08/25/2011 05:16 PM, Aaron Gray wrote: "Chris Stockton" wrote in message news:calkfbxvsuq-zqyytdxi3a9tccieh6xzz9y-kbyqva8kpc4-...@mail.gmail.com... Hello, On Thu, Aug 25, 2011 at 2:57 PM, Aaron Gray wrote: Hi, I

Re: [PHP-DEV] transversing associative arrays from C

2011-08-25 Thread Aaron Gray
""Aaron Gray"" wrote in message news:a1.a0.22704.0d5e6...@pb1.pair.com... "Chris Stockton" wrote in message news:calkfbxvsuq-zqyytdxi3a9tccieh6xzz9y-kbyqva8kpc4-...@mail.gmail.com... Hello, On Thu, Aug 25, 2011 at 2:57 PM, Aaron Gray wrote: Hi, I am working on a C extension module for PHP

Re: [PHP-DEV] transversing associative arrays from C

2011-08-25 Thread Christopher Jones
On 08/25/2011 05:16 PM, Aaron Gray wrote: "Chris Stockton" wrote in message news:calkfbxvsuq-zqyytdxi3a9tccieh6xzz9y-kbyqva8kpc4-...@mail.gmail.com... Hello, On Thu, Aug 25, 2011 at 2:57 PM, Aaron Gray wrote: Hi, I am working on a C extension module for PHP and am wondering about an API

Re: [PHP-DEV] transversing associative arrays from C

2011-08-25 Thread Aaron Gray
"Chris Stockton" wrote in message news:calkfbxvsuq-zqyytdxi3a9tccieh6xzz9y-kbyqva8kpc4-...@mail.gmail.com... Hello, On Thu, Aug 25, 2011 at 2:57 PM, Aaron Gray wrote: Hi, I am working on a C extension module for PHP and am wondering about an API issue. I can see how to add to an associati

Re: [PHP-DEV] transversing associative arrays from C

2011-08-25 Thread Chris Stockton
Hello, On Thu, Aug 25, 2011 at 2:57 PM, Aaron Gray wrote: > Hi, > > I am working on a C extension module for PHP and am wondering about an API > issue. > > I can see how to add to an associative array :- > Most everything you need to know about manipulating arrays can be found in ext/standard/ar