Finding position of New line in string
| From: | lists) | Date: | Wed, 25 Feb 2004 16:28:36 +0000 |
| Subject: | Finding position of New line in string | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-178849@lists.php.net to get a copy of this message | ||
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
--
Ben Edwards Tel +44 (0)1179 553 551 ICQ 42000477
Homepage - nothing of interest here http://gurtlush.org.uk
Webhosting for the masses http://www.serverone.co.uk
criticalSite Builder CMS http://www.criticaldistribution.com
Get alt news/views films online http://www.cultureshop.org
i-Contact Progressive Video http://www.videonetwork.org
Fun with corporate graphics http://www.subvertise.org
--
****************************************************************
* Ben Edwards Tel +44 (0)1179 553 551 ICQ 42000477 *
* Homepage - nothing of interest here http://gurtlush.org.uk
*
* Webhosting for the masses http://www.serverone.co.uk *
* Critical Site Builder http://www.criticaldistribution.com *
* online collaborative web authoring content management system *
* Get alt news/views films online http://www.cultureshop.org *
* i-Contact Progressive Video http://www.videonetwork.org *
* Fun corporate graphics http://www.subvertise.org *
* Bristol Indymedia http://bristol.indymedia.org *
* Bristol's radical news http://www.bristle.org.uk *
****************************************************************