Re: [PHP-DEV] New function request - Variable parsing a string

2004-09-02 Thread Daniel C.
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

Re: [PHP-DEV] New function request - Variable parsing a string

2004-09-02 Thread Antony Dovgal
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),

Re: [PHP-DEV] New function request - Variable parsing a string

2004-09-02 Thread Herbert Groot Jebbink
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

Re: [PHP-DEV] New function request - Variable parsing a string

2004-09-01 Thread Sara Golemon
> 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 =

Re: [PHP-DEV] New function request - Variable parsing a string

2004-09-01 Thread Philip Olson
> 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'; > $

Re: [PHP-DEV] New function request - Variable parsing a string

2004-09-01 Thread Herbert Groot Jebbink
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

Re: [PHP-DEV] New function request - Variable parsing a string

2004-08-31 Thread Rasmus Lerdorf
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

[PHP-DEV] New function request - Variable parsing a string

2004-08-31 Thread Herbert Groot Jebbink
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