Re: carriage return
| From: | Frank de Bot | Date: | Fri, 05 Aug 2005 10:15:03 +0000 |
| Subject: | Re: carriage return | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-220055@lists.php.net to get a copy of this message | ||
Diana Castillo wrote:
How can I with php detect when there is a carriage return at the end of the text field in a mysql table? Something like this perhaps:$res = mysql_query($query); $row = mysql_fetch_object($row) if (preg_match("/\r$/",$row->textfield) { echo "Got CR"; } else { echo "No CR at end"; } Just an example to help you on the way.