Question: 1Write a PHP script named parishes.php that creates a variable $parishes with the value Kingston Manchester St. Catherine Clarendon. The script should perform the following
1Write a PHP script named parishes.php that creates a variable $parishes with the value Kingston Manchester St. Catherine Clarendon. The script should perform the following tasks:
a. Search for a word in $parishes that end in don. Store this word in element 0 of an array named $parishesArray.
. Search for a word in $parishes that begins with k and ends with n. Perform a casesensitive comparison. Store this word in element 1 of $parishesArray.
. Search for a word in $parishes that begins with m and ends with r. Store this word in element 2 of $parishesArray.
. Search for a word in $parishes that ends with e. Store this word in element 3 the array.
. Search for a word in $parishes at the beginning of the string that begins with s. Store this word in element 4 the array.
. Output the $parishesArray to the screen
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
