note 117617 added to language.oop5.properties
| From: | anca at techliminal dot com | Date: | Wed, 08 Jul 2015 23:08:03 +0000 |
| Subject: | note 117617 added to language.oop5.properties | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-203066@lists.php.net to get a copy of this message | ||
You can access property names with dashes in them (for example, because you converted an XML file to
an object) in the following way:
<?php
$ref = new StdClass();
$ref->{'ref-type'} = 'Journal Article';
var_dump($ref);
?>
----
Server IP: 72.52.91.14
Probable Submitter: 2001:400:613:18::b66
----
Manual Page -- http://php.net/manual/en/language.oop5.properties.php
Edit -- https://master.php.net/note/edit/117617
Del: integrated -- https://master.php.net/note/delete/117617/integrated
Del: useless -- https://master.php.net/note/delete/117617/useless
Del: bad code -- https://master.php.net/note/delete/117617/bad+code
Del: spam -- https://master.php.net/note/delete/117617/spam
Del: non-english -- https://master.php.net/note/delete/117617/non-english
Del: in docs -- https://master.php.net/note/delete/117617/in+docs
Del: other reasons-- https://master.php.net/note/delete/117617
Reject -- https://master.php.net/note/reject/117617
Search -- https://master.php.net/manage/user-notes.php