Why can a method in TP5 be called in two ways?

for example, why can the max () method be called $this- > max ("id") as well as statically self::max (" id") ?

Mar.22,2021

static methods can be called through both methods.


the internal implementation mechanism is only. If a non-static method is called statically, the _ _ callStatic magic method will be touched internally, and the function will be automatically instantiated. 5.1.You can see that the facade (Facade); mechanism should be the same!

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b40bba-2c546.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b40bba-2c546.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?