codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
<?php $str = 'this is a string "that has quoted text" "" inside.'; var_dump ( preg_split('#\s+("[^"]*")\s+|\s+#', $str, -1 , PREG_SPLIT_DELIM_CAPTURE) ); ?>
Private
[
?
]
Run code
Submit