Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checkLength($message, $length) {
- $explodeMessage = explode(' ', $message);
- foreach ($explodeMessage as $word) {
- $checkWord = strlen($word);
- if($checkWord > $length) {
- $output = 1;
- }
- }
- return $output;
- }
Add Comment
Please, Sign In to add comment