Recent Posts
AppleScript | 11 sec ago
None | 12 sec ago
None | 19 sec ago
C | 20 sec ago
None | 47 sec ago
None | 52 sec ago
None | 56 sec ago
None | 1 min ago
Prolog | 2 min ago
PHP | 2 min ago
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By pocams on the 1st of Aug 2008 03:55:17 PM Download | Raw | Embed | Report
  1. <? var_dump(preg_split('/\s+/', "Test  string    this is a test")) ?>
  2.  
  3. array(6) {
  4.   [0]=>
  5.   string(4) "Test"
  6.   [1]=>
  7.   string(6) "string"
  8.   [2]=>
  9.   string(4) "this"
  10.   [3]=>
  11.   string(2) "is"
  12.   [4]=>
  13.   string(1) "a"
  14.   [5]=>
  15.   string(4) "test"
  16. }
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: