php - What does this sentence mean? -
php - What does this sentence mean? -
public static function has_setting() { homecoming (self::count() > 0); }
count() php funciton,prepend self,i wonder meaning,thanks. know self means class, wonder meaning self::count()
does mean count instance quantity of class?
i don't know why people boy question!you can give advice other stepping on it
i improve question, can set away feet?
seems count()
static function. when static functions used applies objects of class not particular object. self
means current class. self::count
means class saying : apply function on myself (all objects).
php
Comments
Post a Comment