PDA

View Full Version : would it be preg_replace


sabret00the
01-15-2005, 06:58 PM
basically i'm extracting data from the database for a preview of some posts, however in doing so if it contains a quote it goes all pear shaped due to the fact that the tag doesn't close, if their anyway to just cut that code out and just include what comes after and before?

Andreas
01-15-2005, 07:42 PM
$text = strip_quotes($text)

?

sabret00the
01-15-2005, 07:46 PM
works perfectly, thank you :)