is it possible to set the default value of an argument in a class function as static variable thanks for the help in Advance!
class UserControl {
public static $CurrentUID;
public static function isUserExist($CurrentUID = UserControl::$CurrentUID){
....
}
}
You can make a workaround in this case:
public static function isUserExist($CurrentUID = false)
{
if(!$CurrentUID)
$CurrentUID = UserControl::$CurrentUID;
....
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With