Hi!
Am Wed, 24 Apr 2002 22:15:19 +0200 schrieb Daniel Lorch <[EMAIL PROTECTED]>:
> function line_count($string) {
> return count(preg_split("/\r?\n/", $string));
> }
Why not simply use a substr_count($string, "\n")? It works fine for me...
cu, Roland Tapken
--
Please reply to: [EMAIL PROTECTED]
PGP Public Key: http://www.engter.de/~tapkenea/gnupg_roland.txt
~~~ I'm a signature-virus. Please copy me into your sig. ~~~
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php