While this would definitely be handy, it seems (to me, and I am not by
any means an expert on these things,) that it would make more sense to
add this to a string-munging library instead of integrating it into
the PHP language itself.
Dan
On Wed, 1 Sep 2004 08:22:14 -0700, Sara Golemon <[EMAIL PRO
On Wed, 1 Sep 2004 08:22:14 -0700
"Sara Golemon" <[EMAIL PROTECTED]> wrote:
> > Just use double quotes, no need for a function:
> >
> > $string = "* {$abc} * {$klm['klm']} * {$xyz->xyz} *";
> > echo $string;
> >
> He wants to store an UNinterpolated string somewhere (like a DB or
> text file),
Sara Golemon wrote:
>> $string = "* {$abc} * {$klm['klm']} * {$xyz->xyz} *";
>> echo $string;
>>
> He wants to store an UNinterpolated string somewhere (like a DB or text
> file), then interpolate it at run-time.
indeed, and it's usage is in a driver that calls include files for the
business
> Just use double quotes, no need for a function:
>
> $string = "* {$abc} * {$klm['klm']} * {$xyz->xyz} *";
> echo $string;
>
He wants to store an UNinterpolated string somewhere (like a DB or text
file), then interpolate it at run-time.
$sitename = 'php.net';
$username = 'pollita';
$string =
> I don't want to parse variables FROM a string but I want to parse them
> INTO a string as described on the page:
>
> http://ie.php.net/manual/en/language.types.string.php#language.types.string.parsing
>
> Below a PHP example that shows the function I want.
>
>
> $abc= '123';
> $
Rasmus Lerdorf wrote:
>> To speed up a homebuild PHP framework I would like to have a new
>> function that expands a string with the PHP variables in it, just like
>> how variable parsing is done for a double-quotes string.
> http://nl.php.net/parse_str
I don't want to parse variables FROM a str
http://nl.php.net/parse_str
On Tue, 31 Aug 2004, Herbert Groot Jebbink wrote:
> Hi,
>
> To speed up a homebuild PHP framework I would like to have a new
> function that expands a string with the PHP variables in it, just like
> how variable parsing is done for a double-quotes string.
>
> string
Hi,
To speed up a homebuild PHP framework I would like to have a new
function that expands a string with the PHP variables in it, just like
how variable parsing is done for a double-quotes string.
string VariableParsingString ( string string )
Currently I do it with the next eval statement.
eva