Re: Variables and Strings
| From: | Curt Zirzow | Date: | Thu, 29 Dec 2005 05:55:29 +0000 |
| Subject: | Re: Variables and Strings | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-227953@lists.php.net to get a copy of this message | ||
On Wed, Dec 28, 2005 at 10:30:04PM -0500, PHP Superman wrote:
> Hey everyone, is there a way to return all the variables from a string into
> an array, for example
> $Var1="Yo";
> $Var2="Man";
> $SQL="SELECT * FROM tblname WHERE 4=$Var1 AND WHERE 3=$Var2";
> $AllVars=MySpecialFunction($SQL);
> print_r($AllVars);
I'm not sure what your trying to do but well,
var_dump($Var1, $Var2, $AllVars);
Curt.
--
cat .signature: No such file or directory