Guest User

Untitled

a guest
Jul 23rd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.23 KB | None | 0 0
  1. function checkLength($message, $length) {
  2.     $explodeMessage = explode(' ', $message);
  3.     foreach ($explodeMessage as $word) {
  4.         $checkWord = strlen($word);
  5.         if($checkWord > $length) {
  6.         $output = 1;
  7.         }
  8.     }
  9.     return $output;
  10. }
Add Comment
Please, Sign In to add comment