Welcome Guest, Not a member yet? Register   Sign In
auto-blockquote problem.
#1

[eluser]benfike[/eluser]
I have an auto-blockquote function. I want that the system transform a text between “” into blockquote only if the text consist of more than 21 characters. But now this dont work.

Code:
function make_blockquote($str){
        $data = preg_replace('/"([^"]{21,})"/i', '<blockquote>$1</blockquote>', $str);
        return $data;
    }




Theme © iAndrew 2016 - Forum software by © MyBB