Re: Variables and Strings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux