Re: [PHP] Mind exploded on this one!

2003-07-11 Thread Jim Lucas
You have almost everything correct here

change that last line to this.

 $arrayListArray = compact('booleanNonFormVars', 'booleanVars',
'profileVarArray',
   'profileNonFormVarArray');

notice the use of compact()

Jim Lucas

- Original Message -
From: "Phil Powell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, July 11, 2003 11:21 AM
Subject: [PHP] Mind exploded on this one!


$booleanNonFormVars = array('hasSelectedLetter', 'hasEnteredProfile',
'hasSelectedProfile',
 'hasEditedProfile', 'hasDeletedProfile',
'willDeleteProfile',
 'willDeletePic');
 $booleanVars = array('profileID', 'showemail', 'showbirthday', 'season',
'profilememberid');
 $profileVarArray = array('firstname', 'lastname', 'city', 'state',
'country', 'favebands',
  'faveconcert', 'favescandinavia', 'faveviking',
'favemeat',
  'freetime', 'thingslove', 'thingshate',
'favebibleverse',
  'changeonething', 'maritalstatus', 'birthday',
'favemovie',
  'faveplace', 'favetv', 'imgpath', 'imgext');
 $profileNonFormVarArray = array('profileName', 'letter', 'name');

 $arrayListArray = array('booleanNonFormVars', 'booleanVars',
'profileVarArray',
'profileNonFormVarArray');

Bluntly put, I need to get:
$hasSelectedLetter
$letter

Etc..

I have absolutely NO idea how to do this, help!

Phil



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Mind exploded on this one!

2003-07-11 Thread Kevin Stone

- Original Message -
From: "Kevin Stone" <[EMAIL PROTECTED]>
To: "Phil Powell" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, July 11, 2003 12:33 PM
Subject: Re: [PHP] Mind exploded on this one!


> - Original Message -
> From: "Phil Powell" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Friday, July 11, 2003 12:21 PM
> Subject: [PHP] Mind exploded on this one!
>
>
> $booleanNonFormVars = array('hasSelectedLetter', 'hasEnteredProfile',
> 'hasSelectedProfile',
>  'hasEditedProfile', 'hasDeletedProfile',
> 'willDeleteProfile',
>  'willDeletePic');
>  $booleanVars = array('profileID', 'showemail', 'showbirthday', 'season',
> 'profilememberid');
>  $profileVarArray = array('firstname', 'lastname', 'city', 'state',
> 'country', 'favebands',
>   'faveconcert', 'favescandinavia', 'faveviking',
> 'favemeat',
>   'freetime', 'thingslove', 'thingshate',
> 'favebibleverse',
>   'changeonething', 'maritalstatus', 'birthday',
> 'favemovie',
>   'faveplace', 'favetv', 'imgpath', 'imgext');
>  $profileNonFormVarArray = array('profileName', 'letter', 'name');
>
>  $arrayListArray = array('booleanNonFormVars', 'booleanVars',
> 'profileVarArray',
> 'profileNonFormVarArray');
>
> Bluntly put, I need to get:
> $hasSelectedLetter
> $letter
>
> Etc..
>
> I have absolutely NO idea how to do this, help!
>
> Phil
>
> ---
>
> Oh my.  :)
>
> Looks like to me you've got..
> $hasSelectedLetter = $arrayListArray['booleanNonFormVars'][0];
> $letter = $arrayListArray['profileNonFormVarArray'][1];
>
> HTH,
> Kevin

Correction!  The indicies are not valid.  My mistake.  :)

$hasSelectedLetter =
$arrayListArray['booleanNonFormVars']['hasSelectedLetter'];
$letter = $arrayListArray['profileNonFormVarArray']['letter'];

- Kevin



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Mind exploded on this one!

2003-07-11 Thread Kevin Stone
- Original Message -
From: "Phil Powell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, July 11, 2003 12:21 PM
Subject: [PHP] Mind exploded on this one!


$booleanNonFormVars = array('hasSelectedLetter', 'hasEnteredProfile',
'hasSelectedProfile',
 'hasEditedProfile', 'hasDeletedProfile',
'willDeleteProfile',
 'willDeletePic');
 $booleanVars = array('profileID', 'showemail', 'showbirthday', 'season',
'profilememberid');
 $profileVarArray = array('firstname', 'lastname', 'city', 'state',
'country', 'favebands',
  'faveconcert', 'favescandinavia', 'faveviking',
'favemeat',
  'freetime', 'thingslove', 'thingshate',
'favebibleverse',
  'changeonething', 'maritalstatus', 'birthday',
'favemovie',
  'faveplace', 'favetv', 'imgpath', 'imgext');
 $profileNonFormVarArray = array('profileName', 'letter', 'name');

 $arrayListArray = array('booleanNonFormVars', 'booleanVars',
'profileVarArray',
'profileNonFormVarArray');

Bluntly put, I need to get:
$hasSelectedLetter
$letter

Etc..

I have absolutely NO idea how to do this, help!

Phil

---

Oh my.  :)

Looks like to me you've got..
$hasSelectedLetter = $arrayListArray['booleanNonFormVars'][0];
$letter = $arrayListArray['profileNonFormVarArray'][1];

HTH,
Kevin



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Mind exploded on this one!

2003-07-11 Thread Phil Powell
$booleanNonFormVars = array('hasSelectedLetter', 'hasEnteredProfile', 
'hasSelectedProfile',
 'hasEditedProfile', 'hasDeletedProfile', 
'willDeleteProfile',
 'willDeletePic');
 $booleanVars = array('profileID', 'showemail', 'showbirthday', 'season', 
'profilememberid');
 $profileVarArray = array('firstname', 'lastname', 'city', 'state', 'country', 
'favebands',
  'faveconcert', 'favescandinavia', 'faveviking', 'favemeat',
  'freetime', 'thingslove', 'thingshate', 'favebibleverse',
  'changeonething', 'maritalstatus', 'birthday', 'favemovie', 
  'faveplace', 'favetv', 'imgpath', 'imgext');
 $profileNonFormVarArray = array('profileName', 'letter', 'name');

 $arrayListArray = array('booleanNonFormVars', 'booleanVars', 'profileVarArray', 
'profileNonFormVarArray');

Bluntly put, I need to get: 
$hasSelectedLetter
$letter

Etc..

I have absolutely NO idea how to do this, help!

Phil