Implement interface ArrayAccess in the Value class
[plcapi.git] / demo / client / agesort.php
index b21bf89..0b6aa9a 100644 (file)
@@ -50,8 +50,10 @@ if (!$resp->faultCode()) {
     print "The server gave me these results:<pre>";
     $value = $resp->value();
     foreach ($value as $struct) {
-        $name = $struct->structmem("name");
-        $age = $struct->structmem("age");
+        //$name = $struct->structmem("name");
+        $name = $struct["name"];
+        //$age = $struct->structmem("age");
+        $age = $struct["age"];
         print htmlspecialchars($name->scalarval()) . ", " . htmlspecialchars($age->scalarval()) . "\n";
     }