[snip] Thanks for the responses guys, but what i'm saying is i would like to return all the variable names i have in a string, $String="Blah Blah Blah $VarName Blah Blah Blah"; $Vars=myspecialfunction($Varname); echo ($Vars); that code would produce $Varname, if there were more variables it would also return the Variable Names in an array [/snip] And you call yourself Superman?!? Keep in mind that the variable name in a double quoted string is interpreted, you would have to use an outside process to read each line of the file, locate the lines where the variables are, and then process to your liking. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php