Skip to content

Instantly share code, notes, and snippets.

@sabid
Created August 4, 2014 20:41
Show Gist options
  • Save sabid/f4f80e76e18376cd67a0 to your computer and use it in GitHub Desktop.
Save sabid/f4f80e76e18376cd67a0 to your computer and use it in GitHub Desktop.
PHP Part of a date
$parts = explode('-', '2068-06-15');
echo $parts[0];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment