note 40542 added to function.strpos
| From: | webmaster__AT__digitalanime__DOT__nl at rn2 dot php dot net | Date: | Sun, 07 Mar 2004 07:09:54 +0000 |
| Subject: | note 40542 added to function.strpos | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-66377@lists.php.net to get a copy of this message | ||
In adition to php at digitalreef dot net:
<?php
$line_break_pos = strpos( $whole_text, '\n' );
?>
This won't work.. And that's logica.
Linebreaks wil only be parsed between double quotes, and you're using single quotes:
<?php
$line_break_pos = strpos($whole_text, "\n");
?>
That wil work.
----
Manual Page -- http://www.php.net/manual/en/function.strpos.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40542
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40542&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40542&report=yes
Search -- http://master.php.net/manage/user-notes.php