Skip to content

Instantly share code, notes, and snippets.

@luisuribe
Created August 10, 2011 17:02
Show Gist options
  • Select an option

  • Save luisuribe/1137423 to your computer and use it in GitHub Desktop.

Select an option

Save luisuribe/1137423 to your computer and use it in GitHub Desktop.
regexp
-- Remove '-', ':' and the space from a string
preg_replace( '[-|:|\ ]' , '', $header['date'] );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment