Answers for "same product comparision"

0

same product comparision

function myfunction($products, $field, $value)
{
   foreach($products as $key => $product)
   {
      if ( $product[$field] === $value )
         return $key;
   }
   return false;
}
Posted by: Guest on August-16-2021

Code answers related to "same product comparision"

Browse Popular Code Answers by Language