Login Register


Possibly the weirdest bug fix. filter_list
Author
Message
RE: Possibly the weirdest bug fix. #6
(06-03-2014, 10:34 AM)cr33pyguy Wrote: They'll grow giant, and roll over you. And then they'll eat smashed humans with grass sauce.

OT: I've done only a small amount of PHP, so excuse my confusion, but what exactly does the operator -> do?
is it similar to Java's .add() ?

Well, $this is referring to the parent class, -> is used for referencing variables and functions within the class.

For example, in the code above, I have the variable/array called $cart, I'm giving the variable $potato the value stored in the $cart variable.

PHP Code:
$potato = $this->cart;

For some better explanations, I suggest checking out their documentation.

Reply





Messages In This Thread
Possibly the weirdest bug fix. - by Lain - 06-03-2014, 09:21 AM
RE: Possibly the weirdest bug fix. - by Equinox - 06-03-2014, 09:26 AM
RE: Possibly the weirdest bug fix. - by cr33pyguy - 06-03-2014, 09:39 AM
RE: Possibly the weirdest bug fix. - by Lain - 06-03-2014, 09:57 AM
RE: Possibly the weirdest bug fix. - by cr33pyguy - 06-03-2014, 10:34 AM
RE: Possibly the weirdest bug fix. - by Lain - 06-03-2014, 12:25 PM
RE: Possibly the weirdest bug fix. - by cr33pyguy - 06-04-2014, 08:54 AM
RE: Possibly the weirdest bug fix. - by Lain - 06-04-2014, 08:59 AM
RE: Possibly the weirdest bug fix. - by Eclipse - 06-03-2014, 06:24 PM
RE: Possibly the weirdest bug fix. - by Christ - 06-03-2014, 07:00 PM
RE: Possibly the weirdest bug fix. - by Satan - 06-04-2014, 11:41 PM



Users browsing this thread: 1 Guest(s)