MyBB Community Forums

Full Version: Weird PHP issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(2009-12-30, 12:53 AM)MattRogowski Wrote: [ -> ]
$str = "Something here, Something else here, Something different here.";
$str = str_replace("Something", "<strong>Something</strong>", $str);

$ php -a
Interactive shell

php > $str = "Something here, Something else here, Something different here.";
php > $str = str_replace("Something", "<strong>Something</strong>", $str);
php > echo $str;
<strong>Something</strong> here, <strong>Something</strong> else here, <strong>Something</strong> different here.
php >

Works fine in 5.2.11... don't see why it shouldn't work for you.
Found what it was, I'd forgot to strip out spaces from the original $string before exploding it. Very silly mistake.
Your sample does not include leading or trailing spaces, neither does it include any reference to explode. It would really help if accurate information was provided... >_>
is there any Word Censor (filter) on this forum?
I would like to test and pass it Wink
(2009-12-31, 04:40 AM)FBI Wrote: [ -> ]is there any Word Censor (filter) on this forum?
I would like to test and pass it Wink

There is not :p
ahh, too bad Smile

\\\\\\\\\\\\\\\\\\\\\\\\\\
And, some user can bypassed
Pages: 1 2