Can someone please help with this code snippet?

by BenQ 1 replies
I'm using a script, and it's having a problem with some characters. There is a fix for it, but I can't quite figure it out.

The fix is to replace 3 instances of:
str_replace(" ","",$str);
To clarify, in each instance of replacing you need to make sure the $str is the same as the one replacing. The preg replace applies to the same $var as the str_replace.

However, the 3 instances where str_replace appear look like this:

str_replace(" ","",$value);
str_replace(" ","",$value1);
str_replace(" ","",$value);
So I'm unclear on exactly what I should change my lines to. Any help? If you could show me in detail it would be appreciated.
#programming #code #snippet
Avatar of Unregistered

Trending Topics

  • 5 {{ upvoteCount | shortNum }}

    Internet Marketing VS Network Marketing

    noobz in Internet Marketing

    Last night I was invited to a small meeting and this guy who is in this one Network Marketing company happens to be the speaker. He claimed to make 6 ... [read more]

  • 23 {{ upvoteCount | shortNum }}

    Tons of Bad Advice In This Thread

    Most people that come to the forum are looking for advice on how to build their business or to otherwise make more money. Thanks to all those willing to help ... [read more]

  • 8 {{ upvoteCount | shortNum }}

    All or Nothing Decisions

    Mark Singletary in

    Some of the higher level mods can change posts, sigs, etc. The community mods (at least me) can not. That's fine - no issues with it. However, this leads to ... [read more]

  • 7 {{ upvoteCount | shortNum }}

    Is this a Warrior Forum owned bot?

    Dennis Gaskill in

    There have been several "test posts" by: botWFTPostNewTrd. Here's an example: It looks they get deleted, but why is this user not banned? Is this a Warrior Forum bot? ... [read more]

  • 1 {{ upvoteCount | shortNum }}

    Why the pending clearance take 14 days in fiverr?

    Ajom Mahmud in Internet Marketing

    When I completed a work and order in fiverr the payment will be added in my withdrawal available account after 14 days? At this time this dollar is under pending ... [read more]