I have an array with terms and definitions>
$myArray = array("apple" => "Fruit that grows ...", "car" => "Vehicle on four...");
How do I determine if I have words starting with a particular letter? Say, “c” for car?
I need to do this check with JS if possible, without reloading the page.
You have to iterate and check yourself: