I'm looking the way to find one string in array of strings:
$array = ['string1'=>'custom', 'other string'=>'another', 'another'=>'again', 'custom'=>'pid|100', 'once again'=>'pid|'];
I need to find this element: pid|100;
String should containt: pid|any positive integer number
foreach($array as $value) {
// regular expression here
}
How can I found this value? Thanks!