note 75236 added to function.split

From: Date: Sat, 19 May 2007 05:40:35 +0000
Subject: note 75236 added to function.split
Groups: php.notes 
Request: Send a blank email to php-notes+get-126704@lists.php.net to get a copy of this message
// Split a string into words on boundaries of one or more spaces, tabs or new-lines $s = "Please cut \t me \n in pieces"; $words = split("[\n\r\t ]+", $s); print_r($words); // Output: Array ( [0] => Please [1] => cut [2] => me [3] => in [4] => pieces ) ---- Server IP: 83.137.20.120 Probable Submitter: 80.127.14.53 ---- Manual Page -- http://www.php.net/manual/en/function.split.php Edit -- https://master.php.net/note/edit/75236 Del: integrated -- https://master.php.net/note/delete/75236/integrated Del: useless -- https://master.php.net/note/delete/75236/useless Del: bad code -- https://master.php.net/note/delete/75236/bad+code Del: spam -- https://master.php.net/note/delete/75236/spam Del: non-english -- https://master.php.net/note/delete/75236/non-english Del: in docs -- https://master.php.net/note/delete/75236/in+docs Del: other reasons-- https://master.php.net/note/delete/75236 Reject -- https://master.php.net/note/reject/75236 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#126704) next »