Re: [PHP] Need key() equivalent for string variable

2001-01-22 Thread CC Zona
In article <069f01c084ca$1642a320$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Richard Lynch") wrote: > > I'm trying to pass a string variable to a custom function, echoing its > > *value on one line, and its *name (that is, its key if this were an array > > I think you are looking for "variable var

Re: [PHP] Need key() equivalent for string variable

2001-01-22 Thread Richard Lynch
> I'm trying to pass a string variable to a custom function, echoing its > *value on one line, and its *name (that is, its key if this were an array I think you are looking for "variable variables"... \n"; ?> Note the use of $$ to sort of "follow the trail" down to a variable. Don't miss the Z

[PHP] Need key() equivalent for string variable

2001-01-22 Thread CC Zona
I'm trying to pass a string variable to a custom function, echoing its *value on one line, and its *name (that is, its key if this were an array instead of a string) on another line. I searched the manual's sections on variable functions and string functions, to no avail. I tried key(), but i