<?php $a=["orange","mango","papaya"]; $b=array_search("mango",$a); if($b) { echo "matched index is ".$b; } else { "Did not find"; } ?>
You have javascript disabled. You will not be able to edit any code.