Re: carriage return

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux