PHP - Overloading
class Settings_Core { private function _Global_Settings(){ global $MySQL; $Query = 'Select `Name`, `Value` From `Site_Settings`.`Global` Where `Active` = 1 Order By `Id` ASC'; $Result = $MySQL->query($Query, MYSQLI_USE_RESULT); while($Data = mysqli_fetch_assoc($Result)){ $this->Global[$Data['Name']] = $Data['Value']; } } }; error is Notice: Indirect modification of overloaded property Settings_Co :$Global has no effect in /var/www/Include/Core/Settings.Class.php on line 28 I have no idea what to do or what this means or how to fix it Similar TutorialsFirst, I read PHP does not support function overloading. Then later in the book in chapter of OOP, it states: PHP supports function overloading, which means that you can provide more than one function with the same name and different numbers or types of parameters. So does it support function overloading or not? And of course my definition of function overloading is what you get in the Java programming language. |