Is there are any performance difference between using PHP's magic function __callStatic and defining static function normally.
Example:
class Welcome{
public static function __callStatic($method, $parameters){
switch ($method) {
case 'functionName1':
// codes for functionName1 goes here
break;
case 'functionName2':
// codes for functionName2 goes here
break;
}
}
}
vs
class Welcome{
public static function functionName1{
//codes for functionName1 goes here
}
public static function functionName1{
//codes for functionName1 goes here
}
}