Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12511 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9396 invoked by uid 1010); 31 Aug 2004 18:03:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 5746 invoked from network); 31 Aug 2004 18:00:38 -0000 Received: from unknown (HELO colo.lerdorf.com) (66.198.51.121) by pb1.pair.com with SMTP; 31 Aug 2004 18:00:38 -0000 Received: from rasmus2.corp.yahoo.com (rasmus2.corp.yahoo.com [207.126.233.18]) by colo.lerdorf.com (8.13.1/8.13.1/Debian-10) with ESMTP id i7VI0YZU005562; Tue, 31 Aug 2004 11:00:34 -0700 Date: Tue, 31 Aug 2004 11:00:35 -0700 (PDT) X-X-Sender: rasmus@t42p To: Herbert Groot Jebbink cc: internals@lists.php.net In-Reply-To: <20040831173813.7677.qmail@pb1.pair.com> Message-ID: References: <20040831173813.7677.qmail@pb1.pair.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] New function request - Variable parsing a string From: rasmus@php.net (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 VariableParsingString ( string string ) > > Currently I do it with the next eval statement. > > eval('$result = "' . str_replace('"', '\\"', $string) . '";'); > > Greetings, Herbert > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >