$function() and $$variable

后端 未结 2 1669
自闭症患者
自闭症患者 2020-12-17 23:47

What the heck is $function(); and $$variable for?

Have never heard of these before, and searching on google doesn\'t give anything useful

相关标签:
2条回答
  • 2020-12-18 00:01

    $function() is a variable function and $$variable is a variable variable.

    Those linked pages should give you plenty to go on, or at the very least some actual words to search with.

    0 讨论(0)
  • 2020-12-18 00:08

    $$variable can be quite useful. What it does:

    $a = 1;
    $b = "a";
    echo $$b;
    

    Outputs 1

    0 讨论(0)
提交回复
热议问题