« Return to Thread: PHP arrays

Re: PHP arrays

by Miklos Vajna :: Rate this Message:

Reply to Author | View in Thread

On Tue, Jun 23, 2009 at 10:01:34AM -0400, Andres Gonzalez <andres@...> wrote:
> Does SWIG support this?  How do I format my data in the C/C++
> domain so that I can get associative arrays in the PHP domain?

I haven't tried it myself, but looking at the contents of the Lib/php
directory, I would try just returning an
std::map<int,std::vector<std::string>>.


------------------------------------------------------------------------------

_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user

attachment0 (204 bytes) Download Attachment

 « Return to Thread: PHP arrays