$_limit && $_limit) { $Tmp_Tb = explode(' ', $_chaine); $cpt = 0; foreach ($Tmp_Tb as $v) { if(strlen($Tmp_O[$cpt].$v) >= $_limit) { $cpt++; } $Tmp_O[$cpt] .= $v . ' '; } } else { $Tmp_O[0] = $_chaine; } return $Tmp_O; } } /** * Formate une date en AAAAMMJJHHIISSCC * @see http://php.net/manual/fr/datetime.format.php * @param string $format * @param unknown $utimestamp */ if ( ! function_exists('nkmUdate')) { function nkmUdate($format = 'u', $utimestamp = null) { if (is_null($utimestamp)) { $utimestamp = microtime(true); } $timestamp = floor($utimestamp); $milliseconds = round(($utimestamp - $timestamp) * 1000000); //__ ajouté pour avoir un format CC à la fin et non CCCCCC $milliseconds = substr($milliseconds, 0, 2); return date(preg_replace('`(?