Programming

  • 2 {{ upvoteCount | shortNum }}

    [How to] Exclude replacement inside hyperlinks, maybe using if statement,or other way

    basketmen in Programming

    Hi guys, below are simple script for word replacement, it is replacing a word in to link PHP Code: $word = array( 'google', 'yahoo' );  $link = array( 'google', 'yahoo' );   $this->post['message'] = str_ireplace($word, $link, $this->post['message']);  for example text i love google result the output printed ... [read more]