Link to home
Start Free TrialLog in
Avatar of graphxdiva
graphxdiva

asked on

Need a quick explination on $this = $that = $theotherthing = array ();

Been seeing something recently that I'm not quite clear on.  Could someone give me a quick explanation or link to where I can find out.. What is the code snippet doing and how might it be usefully?  I guess I'm just wondering how they all relate.
<?php
$this = $that = $theotherthing = array ();
?>

Open in new window

Avatar of Hube02
Hube02
Flag of United States of America image

That code would be the same as:

$theotherthing = array();
$that = $theotherthing;
$this = $that;

Just on a single line.
Avatar of graphxdiva
graphxdiva

ASKER

Ok so just a quick version of..

$this = array();
$that = array();
$theotherthing = array();

in this case.  Thats what I figured but wasn't sure if it was building some kind of associative array.
ASKER CERTIFIED SOLUTION
Avatar of Hube02
Hube02
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial