PDA

View Full Version : Regular expression help


cashpath
09-27-2007, 05:44 PM
$current_ps = preg_split ('|\s{2,}|s', $current_line);

Can someone tell me what this does?

Eikinskjaldi
09-27-2007, 08:49 PM
It splits a line of text into an array, with the splitting token being 2 or more whitespace characters next to each other.