Oh sorry Gargoyle, i didnt explain myself very well in the last line of my post, i do want to see if $variable[x] is declared, rather than see whats inside the string. -ie-

 Code:
$variable1
$tempvar = "$$variable1"

isdeclared($tempvar)


The result i'm after is it returning "yes $variable1 is declared" rather than "yes $tempvar is declared"

I want to know if you can use a statement similar to above without saying directly
 Code:
isdeclared($variable1)


The reason behind it is using a loop to go though and check if variables are declared.

Hmm, i might have a look and see if i can use an array to get the results i want.

Cheers for the reply


Edited by lukeod (2008-03-05 01:10 AM)