Skip to content

Instantly share code, notes, and snippets.

@kraigh
Created December 2, 2014 16:23
Show Gist options
  • Save kraigh/25209c0e02a5132631f2 to your computer and use it in GitHub Desktop.
Save kraigh/25209c0e02a5132631f2 to your computer and use it in GitHub Desktop.
if (strpos($message, ' ') === false) {
throw new UnexpectedValueException('Cannot split a 160+ char text message without spaces, WTF');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment