Skip to content

Instantly share code, notes, and snippets.

@M-Abdullahi
Created February 15, 2019 05:59
Show Gist options
  • Save M-Abdullahi/3017fcf75e53db80ea3e59f9bcbbc444 to your computer and use it in GitHub Desktop.
Save M-Abdullahi/3017fcf75e53db80ea3e59f9bcbbc444 to your computer and use it in GitHub Desktop.
Helper function to check if an items starts with a pattern
if (starts_with($uploadedFile->getClientMimeType(), 'image')) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment