Please answer this simple SPAM challenge: min(two, three)?
(Example: nine)

The Note You're Voting On

3 years ago
Note that if you use runtime variable name recognition in your code, you are able to use any string as a variable name. Consider following code:


= 'foo with bar';
'foo with bar'} = 42;

// will output int(42)


This can be useful for example when accessing a property of an object constructed from JSON:


= json_decode(file_get_contents(__DIR__ . '/composer.json'));

// would output sth. similar to: object(stdClass)#...


<< Back to user notes page

To Top