phpbar.de logo

Mailinglisten-Archive

[php] preg_split

[php] preg_split

Kristian =?iso-8859-1?Q?K=F6hntopp?= kk_(at)_netuse.de
Mon, 29 Nov 1999 14:02:32 +0100


"Daniel Molkentin (tops.net)" wrote:
> weiss jemand rat? danke.

$devs = preg_split("/\n\n/sUS", $str);
$units = preg_split("/(\s{2,}|:)/sUS", $devs[0]);
for ($i=0; $i<count($units); $i++) {
  print $units[$i]."\n";
}

Kristian

-- 
Kristian Köhntopp, NetUSE Kommunikationstechnologie GmbH
Siemenswall, D-24107 Kiel, Germany, +49 431 386 436 00
Using PHP3? See our web development library at
http://phplib.netuse.de/ (We have moved! Update your bookmarks!)


php::bar PHP Wiki   -   Listenarchive