Give help. Get help.

  • # February 3, 2010 at 1:40 pm

    Hello, I recently found this functions and I wanted to know if there was a way with it I can select and change tags?

    This is how I use it…


    function callback($buffer){
    //do something
    return $buffer;

    I wanna do something like changing this…


    Welcome to my website

    To this…


    Welcome to my website

    Is there a way I can do this in my function?

    # February 3, 2010 at 9:05 pm

    well, personally, I like the strtr command rather than the str_replace one.

    But what I’m talking about is finding a certain tag, and changing it and or the content inside of it.

    # February 4, 2010 at 8:31 am

    You can use preg_replace for that.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.