Re: configuration class - skeleton code for first OOP adventure
| From: | Marek Kilimajer | Date: | Wed, 08 Oct 2003 20:28:12 +0000 |
| Subject: | Re: configuration class - skeleton code for first OOP adventure | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-165518@lists.php.net to get a copy of this message | ||
anders thoresson wrote:
foreach ($changedValues as $changedValue)
{
$new_contents = ereg_replace($changedValue[old], $changedValue[new], $contents);
$contents = $new_contents;
}
This will not work. For example if you have:
option1 = value;
option2 = value2;
then ereg_replace('value', 'changed', $contents); will make it:
option1 = changed;
option2 = changed2;
Marek