* Desikan ([EMAIL PROTECTED]) [Feb 09. 2002 02:17]:
> Hi there,
Hi,
> Please help me out in the following...
> <?php
> $is='is';
> echo eregi_replace(" ".$is." "," ","This is a test string which contains
> is in dismissal");
> ?>
> Actually I want to replace "is" alone from the string and not all the
> words that contains is...
str_replace() would be easier:
<?php
$string = ' foo ';
print str_replace($string,' nude ','This is a foo bar.');
?>
--
Headers set. CCs on list replies -> bit bucket.
Brian Clark | Unable to leap tall buildings in a single bound.
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php