I need assistance

$  x=array('01-01-2021', 'bread', 01-01-2021,'fish'); foreach ($  x as $  result) {      echo $  result . "<br>";  }  

How do I join two same dates into one? To have 01-01-2021, bread,fish?