note 40542 deleted from function.strpos by irchtml
| From: | irchtml@php.net | Date: | Sun, 07 Mar 2004 07:44:07 +0000 |
| Subject: | note 40542 deleted from function.strpos by irchtml | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-66379@lists.php.net to get a copy of this message | ||
Note Submitter: webmaster __AT__ digitalanime __DOT__ nl
----
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.