I/O Reader
Peter Goodman
's blog about
PHP
,
Parsing Theory
,
Applications
,
Javascript
,
Functional Programming
,
…
Blog
Code
Tags
Reading List
Grail
+
XY
Comments By: Pascal
Nice article! I'm a great fan o'preg_split; but for the example you used I prefer to use
$list = array_filter(explode(",", ...))
in order to filter out empty array elements ... I'll wrap up a benchmark somewhere this weekend in order to see which one line performs better :)
posted on Nov 27, 2009 at 5:11pm |
context
$list = array_filter(explode(",", ...))in order to filter out empty array elements ... I'll wrap up a benchmark somewhere this weekend in order to see which one line performs better :)