- From: Nathan <nathan@webr3.org>
- Date: Sun, 31 Jul 2011 15:11:39 +0100
- To: Alexandre Passant <alex@seevl.net>
- CC: public-linked-json@w3.org
Alexandre Passant wrote: > The json_decode method in PHP creates PHP objects, and attributes can > be retrieved using $name->attribute. > Yet, attribute cannot start with a @ > > So $object->@ won't work, but $object->uri will be OK. Attribute names can be anything in PHP (even NULL!) you use the $object->{'@context'} style to access non standard attribute names, although it's not quite as clean as $object->context that's for sure :) Best, Nathan
Received on Sunday, 31 July 2011 14:12:35 UTC