Hi,
I have a page that queries a MySQL database and brings back the results. What I want to do is on one of the results, limit it to the first sentence.
eg: so if $description = "Hi there. It's a nice day."
I'd like it to just return "Hi there."
How do I do this?
Thanks.
I have a page that queries a MySQL database and brings back the results. What I want to do is on one of the results, limit it to the first sentence.
eg: so if $description = "Hi there. It's a nice day."
I'd like it to just return "Hi there."
How do I do this?
Thanks.