Re: Need some help about using Boost.PHP to make extensions
| From: | Moriyoshi Koizumi | Date: | Wed, 19 Nov 2008 19:29:04 +0000 |
| Subject: | Re: Need some help about using Boost.PHP to make extensions | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-41999@lists.php.net to get a copy of this message | ||
Please redirect your question to me. Boost.PHP is not an official part
of the PHP project.
Moriyoshi
On Wed, Nov 19, 2008 at 2:13 AM, Chris Jiang <jiangcat@gmail.com> wrote:
> Hi all, it's been a while since my last thread. I've been playing around
> with Boost.PHP these days, and find it pretty much satisfactory. Now, I need
> some help on how Boost.PHP treat with PHP arrays. Not complaining, but there
> isn't much document I can learn from the official website.
>
> And if this thread is NOT totally about PHP, I'm sorry about this. This
> mailing list is the only place possibly I can find answers about it. I can't
> find a suitable C/C++ forum to ask this question since they don't work with
> PHP though. :(
>
> I'm trying to get an array('key'=>'val') (associative array) as
> argument,
> and return a std::string of 'key:val' back to PHP. Now, I can get the keys
> but not the arrays. I thought there might be something wrong with how I was
> using php::array::const_reference.
>
> Can anyone be so kind to explain how it works? Or perhaps a piece of working
> code that I can learn about?
>
> Thank you!
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>