PHP: Static and non Static functions and Objects

前端 未结 5 2008
借酒劲吻你
借酒劲吻你 2020-11-27 18:58

What\'s the difference between these object callings?

Non Static:

$var = new Object;
$var->function();

5条回答
  •  悲哀的现实
    2020-11-27 19:19

    Static methods and members belong to the class itself and not to the instance of a class.

提交回复
热议问题