PHP 8.4.24 Released!

Voting

: nine plus zero?
(Example: nine)

The Note You're Voting On

anca at techliminal dot com
11 years ago
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);
?>

<< Back to user notes page

To Top