Preg_replace Problem

Discussion in 'PHP' started by Subikar, May 18, 2007.

  1. #1
    I have string pattern
    $String = "I have 200 posts";
    This 200 is variable

    I want to replace this variable integer from string using preg_replace

    Please help me out.

    Thanks in advance for any help
    Subikar :)
     
    Subikar, May 18, 2007 IP
  2. Subikar

    Subikar Active Member

    Messages:
    241
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Anyway thanks it is done :)
     
    Subikar, May 18, 2007 IP