3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $t = 'Articulation Bras De Suspension Fiat Ulysse Nuova (179) 08/2002 - Avant Gauche'; preg_match('/[0-9]{1,2}\/[0-9]{2,4}[\s]*-/', $t, $periode); if(isset($periode[0]) === true) { $periode = explode('-', $periode[0]); $a_partir_de = trim($periode[0]); $periode[1] = trim($periode[1]); } print_r($periode);
based on laDuG
Output for 4.3.0 - 7.2.0
Array ( [0] => 08/2002 [1] => )