Ben Edwards wrote:

I am trying to find the position of the first occurrence on new line in
a string that comes from a database.  I tried

$pos = strpos( $list_text, "/n" );

But it never returns anything. Any help would be much appreciated.

Ben

try $pos = strpos( $list_text, "\n" )


the escape character is \ not /



Kirk Winters

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



Reply via email to