you can set the default value of an argument in a class function as a 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; .... }
Source: https://habr.com/ru/post/1207884/More articles:What are the GC roots for classes? - javaProgress bar in wpf - c #How to switch to another screen from one screen in the Xamarin cross platform? - xamarinHow to show the image of the bootloader with the message in the center and prevent the automatic boot dialog while the AJAX response comes from the PHP file? - javascriptJam when removing visual studio 2013 Update 3 - visual-studio-2013Symfony2: removing an object from the middle of a collection - phpSignedXml CanonicalizationMethod - http://www.w3.org/2006/12/xml-c14n11 - c #Changing a hybrid database in MySQL - mysqlJavaFX: saving and restoring the visual state of a TableView (order, width, and visibility) - eventsHow to calculate and display large numbers in java - javaAll Articles