Re: New function request - Variable parsing a string

From: Date: Thu, 02 Sep 2004 09:16:45 +0000
Subject: Re: New function request - Variable parsing a string
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-12543@lists.php.net to get a copy of this message
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 logic and them merge the variables set by this include file with template files. This driver has no knowlegde which varibles are used so the printf solution I saw in this thread will not work. > I've thought this would be a nice thing to have as well, but it's not > something that can be trivially ripped out of the compiler and I havn't > personally had the motivation to actually get it done. do you have a whishlist with books or cd's online at Amazon or so, maybe I can give you that way some motivation :-) Greetings, Herbert

« previous php.internals (#12543) next »