Returning complex arrays from C functions

From: Date: Wed, 05 Apr 2000 09:46:09 +0000
Subject: Returning complex arrays from C functions
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-13148@lists.php.net to get a copy of this message
Hi, With array_init() and add_assoc_string() I can return an associative array from a PHP extension written in C, but how can I return complex arrays like this: $a=array( array( "Name" => "Name 1", "EMail" => "Email 1" ), array( "Name" => "Name 2", "EMail" => "Email 2" ), array( "Name" => "Name 3", "EMail" => "Email 3" ) ); I want to access the returned array with $a[n]["Name"] and $a[n]["EMail"] Bye K

« previous php.version4 (#13148) next »