Page 1 of 1

what's {$variable} mean

Posted: Fri Jun 11, 2004 4:40 pm
by seveninstl
Can someone explain what this does/means? Specificly the variable with the braces around it.

function process_this($variable)
{
return $this->{$variable}
}

Thanks for any/all help :)

seveninstl

Posted: Fri Jun 11, 2004 5:51 pm
by markl999
http://php.net/manual/en/language.types ... ax.heredoc
See the bit about "Complex (curly) syntax"