Skip to content

Instantly share code, notes, and snippets.

@violetyk
Created November 28, 2011 10:03
Show Gist options
  • Save violetyk/1399838 to your computer and use it in GitHub Desktop.
Save violetyk/1399838 to your computer and use it in GitHub Desktop.
[php]trim
<?php
$str = " \t \n \r \0 \x0B   ";
var_dump(trim($str, " \t\n\r\0\x0B "));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment