Mailinglisten-Archive |
Björn Schotte wrote:
> es nicht, da er nur einmal danach sucht. Ok,
> das ganze durch ein ereg ausgetauscht, scheint
> aber auch nicht so ganz zu funktionieren. Hat
> vielleicht jemand einen Tip oder evtl. sogar eine
> Loesung parat?
Was ist Dein Problem?
kk_(at)_land:~/Source/php3 > ./php
<?php
$str = "ehalloehalloe";
$s = preg_replace("/e/", "q", $str);
print $s."\n";
Content-type: text/html
qhalloqhalloq
kk_(at)_land:~/Source/php3 > ./php
$str = "ehalloehalloe";
$s = ereg_replace("e", "q", $str);
print $s."\n";
Content-type: text/html
qhalloqhalloq
--
Kristian Köhntopp, NetUSE Kommunikationstechnologie GmbH
Siemenswall, D-24107 Kiel, Germany, +49 431 386 436 00
Using PHP3? See our web development library at
http://phplib.shonline.de/ (GPL)
php::bar PHP Wiki - Listenarchive