pastebin
| #1 paste tool since 2002
create new paste
tools
api
archive
real-time
faq
pastebin
Follow @pastebin
create new paste
trending pastes
sign up
login
my settings
my profile
My Pastes
Public Pastes
Edit messing up after G...
0 sec ago
JMV 11 The Favorites Pl...
0 sec ago
Untitled
4 sec ago
premium accounts 12/02/...
10 sec ago
Untitled
10 sec ago
premium accounts 12/02/...
25 sec ago
Untitled
21 sec ago
Untitled
23 sec ago
Layout Width
Share Pastebin
pocams
By: a guest | Aug 1st, 2008 | Syntax:
PHP
| Size: 0.25 KB | Hits: 209 | Expires: Never
Download
|
Raw
|
Embed
|
Report abuse
<?
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"
}
create new paste
|
create new version of this paste
RAW Paste Data
<? 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" }