Re: feature request

From: Date: Thu, 25 Apr 2002 11:36:22 +0000
Subject: Re: feature request
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-83309@lists.php.net to get a copy of this message
Hi! Am Wed, 24 Apr 2002 22:15:19 +0200 schrieb Daniel Lorch <daniel@lorch.cc>: > 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: tapken@engter.de PGP Public Key: http://www.engter.de/~tapkenea/gnupg_roland.txt ~~~ I'm a signature-virus. Please copy me into your sig. ~~~

« previous php.dev (#83309) next »