git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement interface ArrayAccess in the Value class
[plcapi.git]
/
demo
/
client
/
agesort.php
diff --git
a/demo/client/agesort.php
b/demo/client/agesort.php
index
b21bf89
..
0b6aa9a
100644
(file)
--- a/
demo/client/agesort.php
+++ b/
demo/client/agesort.php
@@
-50,8
+50,10
@@
if (!$resp->faultCode()) {
print "The server gave me these results:<pre>";
$value = $resp->value();
foreach ($value as $struct) {
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";
}
print htmlspecialchars($name->scalarval()) . ", " . htmlspecialchars($age->scalarval()) . "\n";
}