Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <? var_dump(preg_split('/\s+/', "Test string this is a test")) ?>
- array(6) {
- [0]=>
- string(4) "Test"
- [1]=>
- string(6) "string"
- [2]=>
- string(4) "this"
- [3]=>
- string(2) "is"
- [4]=>
- string(1) "a"
- [5]=>
- string(4) "test"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement