3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function match_str($cellItemName,$dbItemArray) { $count = 0; $reult1 = stristr($cellItemName,$dbItemArray); //echo $reult1; if($reult1){ $count=1; } if($count==1) { return 1; } else { return 0; } } $msg = "2 php developer $150"; $msg1 = "PHP DEVELOPER"; $result = match_str($msg,$msg1); if($result) echo "<a href='#' >anand</a>"; else echo "<a href='#' >kumar</a>"; ?>
Output for 4.3.0 - 7.2.0
<a href='#' >anand</a>