Re: virtual() ignoring str_replace()

From: Date: Sun, 19 Aug 2001 19:50:34 +0000
Subject: Re: virtual() ignoring str_replace()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-63412@lists.php.net to get a copy of this message
In article <B7A5566D.2116C%lists@jumpinternet.com>, lists@jumpinternet.com (Charlie Romero) wrote: > it just prints the virtual include w/out replacing > the word "window" w/ the word "DOG" in my example. What am I doing wrong? > > $results = virtual("/cgi-bin/search.cgi?q=hello&m=world"); > print str_replace("window", "DOG", $results); str_replace() is case-sensitive. If $results is returning a string like "Windows are nice" (it would help to see the actual string next time...hint hint), it won't match "window". -- CC

« previous php.general (#63412) next »