Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41987 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52684 invoked from network); 18 Nov 2008 17:13:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2008 17:13:46 -0000 X-Host-Fingerprint: 61.50.134.238 unknown Received: from [61.50.134.238] ([61.50.134.238:13034] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 89/EA-32341-9C7F2294 for ; Tue, 18 Nov 2008 12:13:45 -0500 Message-ID: <89.EA.32341.9C7F2294@pb1.pair.com> To: internals@lists.php.net Date: Wed, 19 Nov 2008 01:13:32 +0800 User-Agent: Thunderbird 2.0.0.17 (X11/20080914) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 61.50.134.238 Subject: Need some help about using Boost.PHP to make extensions From: jiangcat@gmail.com (Chris Jiang) 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!