X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=blobdiff_plain;f=demo%2Fclient%2Fagesort.php;h=0b6aa9a928de5766f42d15ad360917863e0d9c7f;hp=b21bf89fb4dc83fb98bf5fb6c7235d4064d68bec;hb=b76d21c030bcd510dce8d7e245581842c62ab6b5;hpb=75234d12e752f022fcf8e5994a0dd8783dec54ab diff --git a/demo/client/agesort.php b/demo/client/agesort.php index b21bf89..0b6aa9a 100644 --- a/demo/client/agesort.php +++ b/demo/client/agesort.php @@ -50,8 +50,10 @@ 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->structmem("name");
+        $name = $struct["name"];
+        //$age = $struct->structmem("age");
+        $age = $struct["age"];
         print htmlspecialchars($name->scalarval()) . ", " . htmlspecialchars($age->scalarval()) . "\n";
     }