X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=demo%2Fclient%2Fagesort.php;h=90622d21a3c603c15b3b77a7ba85fd92f076f1be;hb=a48c09b3cc49bc7f603cd5b06de74ee2d2878ca4;hp=b21bf89fb4dc83fb98bf5fb6c7235d4064d68bec;hpb=cc67a43993662a5a3f92801b96b89ee6e3998532;p=plcapi.git diff --git a/demo/client/agesort.php b/demo/client/agesort.php index b21bf89..90622d2 100644 --- a/demo/client/agesort.php +++ b/demo/client/agesort.php @@ -50,8 +50,8 @@ if (!$resp->faultCode()) { print "The server gave me these results:
";
     $value = $resp->value();
     foreach ($value as $struct) {
-        $name = $struct->structmem("name");
-        $age = $struct->structmem("age");
+        $name = $struct["name"];
+        $age = $struct["age"];
         print htmlspecialchars($name->scalarval()) . ", " . htmlspecialchars($age->scalarval()) . "\n";
     }