Activity Stream
48,167 MEMBERS
6736 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 7 of 7

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1.     
    #1
    Member
    Website's:
    maxneeds.info

    Default Where do i wrong?

    Code: 
    $value=str_replace($unwanted, $wanted, $value);
    $unwanted = array("[img]", "[/img]");
    $wanted  = array("[img=", " width=200]");
    When i use the above code,nothing happens.
    Porsche_maniak Reviewed by Porsche_maniak on . Where do i wrong? $value=str_replace($unwanted, $wanted, $value); $unwanted = array("", ""); $wanted = array(""); When i use the above code,nothing happens. Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    warezat.net
    put $value under the other variables

  4.     
    #3
    Member
    Website's:
    wscripts.net damnlolscript.com lulzjet.com
    maybe you should declare $unwanted and $wanted before you want to use them....

  5.     
    #4
    Member
    Website's:
    maxneeds.info
    aren't they declared ?

    $unwanted = array("[img]", "[/img]");
    $wanted = array("[img=", " width=200]");

  6.     
    #5
    Member
    Website's:
    ttrtt.com
    Code: 
    $unwanted = array("[img]", "[/img]");
    $wanted  = array("[img=", " width=200]");
    $value=str_replace($unwanted, $wanted, $value);
    i think he meant this

  7.     
    #6
    Member
    Website's:
    maxneeds.info
    nope not working

  8.     
    #7
    Member
    Website's:
    warezat.net
    PHP Code: 
    <?
    $value 
    '[img]http://google.com[/img]';
    $unwanted = array("[img]""[/img]");
    $wanted  = array("[img="" width=200]");
    $value=str_replace($unwanted$wanted$value);
    echo 
    $value;
    ?>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. What am I doing Wrong?
    By GBot in forum Whitehat SEO
    Replies: 0
    Last Post: 9th Dec 2013, 06:36 PM
  2. [WCDDL] What am i doing wrong
    By Juxhin_p in forum Web Application/Script Support
    Replies: 10
    Last Post: 1st Oct 2011, 10:53 PM
  3. Am i wrong?
    By JonnyB in forum Hosting Discussion
    Replies: 13
    Last Post: 17th May 2011, 01:01 AM
  4. what wrong im doing?
    By mastercho in forum Forum and DDL Discussion
    Replies: 15
    Last Post: 3rd Apr 2011, 03:40 PM
  5. Something Wrong With HF??
    By Jumbo in forum File Host Discussion
    Replies: 16
    Last Post: 22nd Oct 2010, 02:41 PM

Tags for this Thread

BE SOCIAL