Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26415 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11846 invoked by uid 1010); 8 Nov 2006 01:02:03 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 11831 invoked from network); 8 Nov 2006 01:02:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Nov 2006 01:02:03 -0000 Authentication-Results: pb1.pair.com smtp.mail=tony@tonybibbs.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tony@tonybibbs.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain tonybibbs.com designates 216.51.246.17 as permitted sender) X-PHP-List-Original-Sender: tony@tonybibbs.com X-Host-Fingerprint: 216.51.246.17 www.iowaoutdoors.org Linux 2.5 (sometimes 2.4) (4) Received: from [216.51.246.17] ([216.51.246.17:58575] helo=iowaoutdoors.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 59/88-40429-98C21554 for ; Tue, 07 Nov 2006 20:02:02 -0500 Received: from localhost (localhost [127.0.0.1]) by iowaoutdoors.org (Postfix) with ESMTP id D2EF645627; Tue, 7 Nov 2006 19:02:00 -0600 (CST) Received: from iowaoutdoors.org ([127.0.0.1]) by localhost (iowaoutdoors.iowaoutdoors.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23915-03; Tue, 7 Nov 2006 19:01:59 -0600 (CST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by iowaoutdoors.org (Postfix) with ESMTP id 1689445622; Tue, 7 Nov 2006 19:01:59 -0600 (CST) Message-ID: <45512C82.7060801@tonybibbs.com> Date: Tue, 07 Nov 2006 19:01:54 -0600 User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Jochem Maas CC: internals@lists.php.net References: <45512AD4.1050501@tonybibbs.com> <45512BBF.3000904@iamjochem.com> In-Reply-To: <45512BBF.3000904@iamjochem.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at iowaoutdoors.org Subject: Re: [PHP-DEV] class defs from file? From: tony@tonybibbs.com (Tony Bibbs) Ah, token_get_all() might be what I'm after. Thanks, --Tony Jochem Maas wrote: > Tony Bibbs wrote: >> First post here so be gentle ;-) >> >> I've got a unique need to get the class definitions from a file. Now I >> can write the string manipulation necessary to do this myself with the >> help of some regex-fu but I was wondering if it wouldn't be possible to >> add a method like: >> >> array getClassDefs(string $someFileName) >> >> Like I said, I can do it with some regex work but given the PHP engine >> has to do this it'd seem like a nice addition to the core oo-functions. >> This may be a case where I've got too specific a need to warrant >> community interest but I'd think there might be other cases where such a >> method would prove handy. >> >> Thoughts (other than the obligatory 'p1ss-off'? > > not really an internals thing - generals list is better. > > http://nl2.php.net/manual-lookup.php?pattern=token&lang=en > > should get you what you need. :-) > >> --Tony >> >