¡@

Home 

php Programming Glossary: grab_open

Using PHP substr() and strip_tags() while retaining formatting and without breaking HTML

http://stackoverflow.com/questions/2398725/using-php-substr-and-strip-tags-while-retaining-formatting-and-without-break

html_cut text max_length tags array result is_open false grab_open false is_close false in_double_quotes false in_single_quotes.. i result . symbol switch symbol case ' ' is_open true grab_open true break case ' ' if in_double_quotes in_double_quotes.. in_single_quotes is_close true is_open false grab_open false break case ' ' if is_open grab_open false else stripped..