Jim Moseby wrote:
Thanks for the responses guys, but what i'm saying is i would
...
I believe what Jochem is trying to tell you is that when you assign the
string variable, the variable names are expanded to their values, so the
names are no longer available.
exactly - nicely put Jim.
[snip]
yeah 'Superman' explain what it is you want to do AND why - then maybe we
can
give you some help - what you are currently asking is impossible (well
actually
Jay Blanchard hinted at a way to do it but I firmly believe that its
conceptually
over your head atm and very probably not a good
Jay Blanchard wrote:
[snip]
yeah 'Superman' explain what it is you want to do AND why - then maybe we
can
give you some help - what you are currently asking is impossible (well
actually
Jay Blanchard hinted at a way to do it but I firmly believe that its
conceptually
over your head atm and very
[snip]
ah heck is that the same code that _we_ (Jay and me, etc) played with to
find SQL queries?
or something that was based on it?
I remember Robin Vickery coming up with a token based variant which was
rather nifty -
must look into that agian sometime!
[/snip]
They are all variants of that.
Jay Blanchard wrote:
[snip]
yeah 'Superman' explain what it is you want to do AND why - then maybe we
can
give you some help - what you are currently asking is impossible (well
actually
Jay Blanchard hinted at a way to do it but I firmly believe that its
conceptually
over your head atm and very
[snip]
I wrote a doohickey once which searched for all variable searching
doohickies.
[/snip]
I cannot tell you how happy I am to see you use the past perfect tense
correctly there.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jay Blanchard wrote:
[snip]
ah heck is that the same code that _we_ (Jay and me, etc) played with to
find SQL queries?
or something that was based on it?
I remember Robin Vickery coming up with a token based variant which was
rather nifty -
must look into that agian sometime!
[/snip]
They are
[snip]
They are all variants of that. All nifty little tools. We should gather
those up someplace...shouldn't we?
Well, I just purchased some domains for that. Who wants to develop it? ;)
phpdepository.com
phpdepository.org
phpdepository.net
[/snip]
I'll contribute...
--
PHP General
On Thu, December 29, 2005 3:31 pm, PHP Superman wrote:
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;
$VarName = 'xyz';
$String now has Blah Blah Blah xyz Blah Blah Blah in
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);
your function MySpecialFunction() will recieve the following
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
[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
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
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);
would ideally print an array like:
{
array
$Var1=Yo
$Var2=Man
}
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);
15 matches
Mail list logo