<?php
$acctname = array(
"Nash_paid",
"Nash_Orange",
"Sagi_Orange",
"Sagu_paid",
"Red_Phone",
"Main_Paid",
"Abi_Orange",
"Abi_paid",
"Repeated client_",
"Meni_Road",
"Meni_Towing",
"Main_line");
$string="Red_Phone";
foreach($acctname as $substring){
if (stripos($string, $substring) !== false) {
echo "$substring<br>";
}
}
?>