If I am going to use the code:
extract(
array(
'key.name' => 'value',
'somekey' => 'somevalue'
)
)
Is there some way for me to retrieve the first value? E.g. ${'key.name'} or similar.
I know I can retrieve the second value with $somekey but I am curious if its possible with . in the name.
http://nl.php.net/manual/en/function.extract.php
Nope, it won’t extract ‘key.name’. You can inspect the $GLOBALS array to see it isn’t there.