Hi I want to check whether an string exist or start in set of array.
Example:
$str = "iit.apple"
$arr = ("apple", "mango", "grapes")
I want to check whether an array (arr) element matches or exist or starts with in string
I have tried using foreach loop to read each element but when matches found I am trying to break the loop.
foreachloop) ?