RE: [PHP] finding a variables name

2001-05-15 Thread Eetay Natan
keJSArray( $b ); What name will you get, 'a' or 'b' ? Regards, Eetay -Original Message- From: Joseph Blythe [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 6:45 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] finding a variables name Joseph Bly

Re: [PHP] finding a variables name

2001-05-14 Thread Joseph Blythe
Joseph Blythe wrote: > Ok here is what I am trying to acheive, basically turning a php array > into a javascript array, note this is untested and most likley won't > work :-) > > Where $array_name I need the same name as the functions first and only > argument $array, so I need the name of

Re: [PHP] finding a variables name

2001-05-14 Thread Joseph Blythe
CC Zona wrote: > Can you give an example of code in which you'd be doing this? Ok here is what I am trying to acheive, basically turning a php array into a javascript array, note this is untested and most likley won't work :-) Where $array_name I need the same name as the functions first and

Re: [PHP] finding a variables name

2001-05-14 Thread Jason Brooke
foreach($GLOBALS as $key=>$val) echo "$key=$val\n"; see the list() and each() functions in the manual for php3 - Original Message - From: "Joseph Blythe" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 15, 2001 1:48 PM Subject: [PH

Re: [PHP] finding a variables name

2001-05-14 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Joseph Blythe) wrote: > How does one find the name of a variable, not what the variable contains? > > This is not the same as variable variables. > > I know this seems a bit pointless but I have come across a situation > where I really need t

[PHP] finding a variables name

2001-05-14 Thread Joseph Blythe
Hey ppl, How does one find the name of a variable, not what the variable contains? This is not the same as variable variables. I know this seems a bit pointless but I have come across a situation where I really need to be able to do this. Hope someone can help, Thanks, Joseph -- PHP