Pass a variable into a class through the __construct($variable) function
Variables set in the __Construct can be referenced throughout the class as $this->variable
Can be referenced outside the class as
$Class->variable
Variable Can be passed into a class function like Class::function(variable);
Wednesday, December 04, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment