What does using a dollar sign after $this-> mean in PHP Server Side Scripting Language?

editAnswer

reportReport

Answer(s) available: 1

Sachchit Johal

, Corporate Banker, Certification

"

It'll look up whatever the value of "k" is, and treat it as a variable name. These two samples are the same:

"
echo ($obj->myvar);"
"
####"
"
$k = "myvar";"
echo ($obj->$k);"
"

thumb_upUpvote12

smsComment

reportReport