Re: Ok, I know this may sound like a stupid question...

From: Date: Wed, 06 Dec 2000 17:49:56 +0000
Subject: Re: Ok, I know this may sound like a stupid question...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-28912@lists.php.net to get a copy of this message
Order is sort of a misnomer. Three variables like that don't really have an order. They're just three things. Only in the context of an array do things (the elements of said array) have an order. -Joe S. [------------------------------------------------] Joe Smargie <joes@th.net> Systems Administrator - Technology Horizons 1-413-253-7700 (888-762-2283) [------------------------------------------------] This message is intended to be confidential and may be legally privileged. It is intended solely for the addressee. Unless authorized, any disclosure, copying, distribution or action taken or omitted in reliance on this message is prohibited and may be unlawful. ----- Original Message ----- From: "Boget, Chris" <Chris.Boget@wild.net> To: "PHP (E-mail)" <php-general@lists.php.net> Sent: Tuesday, December 05, 2000 1:11 PM Subject: [PHP] Ok, I know this may sound like a stupid question... > but I've been trying to find *simple* logic to do > this and I cannot seem to wrap my head around > it... > > I have 4 variables that are dynamically assigned > numerical values. Let's say, after all the dynamic > assignement is completed, I end up with: > > $this = 13; > $that = 9; > $other = 27; > $bob = 2; > > What is the simplest way to figure out what order > those variables should go in ascending order.... > Without putting the above 4 variables in an array... > > I've got some code, but it's soooo long. Longer than > it should be, I'm sure. > > Thanks for any help you can provide! > > Chris >

« previous php.general (#28912) next »