Re: Are there static functions in PHP?
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Sun, 11 Sep 2005 09:32:16 -0500
cyberhorse wrote:
This is the way I would go about doing this: filea.php: include_once('parse.php'); fileb.php: include_once('parse.php'); parse.php: function parseArguments(){...}
php can detect if the file parse.php is already included and not include it again, hence not redeclaring the function. Give that a go.
Read again. This won't help as he has "parseArguments" in both filea.php and fileb.php
-- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@xxxxxxxxxxxxx ================== .
- Follow-Ups:
- Re: Are there static functions in PHP?
- From: Peter Salzman
- Re: Are there static functions in PHP?
- References:
- Are there static functions in PHP?
- From: Peter Salzman
- Re: Are there static functions in PHP?
- From: cyberhorse
- Are there static functions in PHP?
- Prev by Date: Re: Are there static functions in PHP?
- Next by Date: Re: Getting right character-set from MySQL
- Previous by thread: Re: Are there static functions in PHP?
- Next by thread: Re: Are there static functions in PHP?
- Index(es):