note 40446 deleted from function.strpos by irchtml
| From: | irchtml@php.net | Date: | Sun, 07 Mar 2004 07:44:02 +0000 |
| Subject: | note 40446 deleted from function.strpos by irchtml | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-66378@lists.php.net to get a copy of this message | ||
Note Submitter: php@digitalreef.net
----
Looking for a new-line or carriage return in your string, esp. after a function call to wordwrap(),
for example?
This won't work:
$line_break_pos = strpos( $whole_text, '\n' );
This will work:
$line_break_pos = strpos( $whole_text, chr(10) );
Same for function strstr and perhaps others.