ruslanashaari
9/8/2017 - 12:28 AM

Check if a string is a pangram or not #exercism

Check if a string is a pangram or not #exercism

<?php
	function isPangram($param) {
		
		$sentences = strtolower(trim($param));
		$letters = str_split("thequickbrownfoxjumpsoverthelazydog");
		foreach ($letters as $letter) {
			if (!strstr($sentences, $letter))
				return false;
		}
		return true;
	}