Page 1 of 1

How to search for \n in a textarea field

Posted: Fri Mar 09, 2007 12:03 am
by chitrapu
hiiiiiii,
I need to know how we can search if the text in a text area contains a \n character,
how is it posibble.Please reply fast, its of high priority

Posted: Fri Mar 09, 2007 1:05 am
by Christopher

Code: Select all

$pos = strpos($mystring, "\n");
if ($pos !== false) {
     // found!
}

Posted: Fri Mar 09, 2007 5:56 am
by volka
Is this related to viewtopic.php?t=64740 ?