Tous les codes sources "Travail d'équipe"page 4
PHP
23 Juillet, 2014 à 01:19
#222
<?php
//Took me a while... Finally got it to work :)
// (xxxx), would you check if this is right?
$arrayString='12,53,653,12,54,65,334,73';
$arrayExploded=explode(',',$arrayString);
$arrayStringNew=implode(';',$arrayString);
?>
PHP
21 Juillet, 2014 à 11:31
#177
foreach($menus as &$menu) {
$column_count = $menu['count'] / $columns;
$column = 1;
$blocks = array();
foreach($menu['data'] as $md) {
if($md['cumulative_count'] > ( ($column_count * $column) * 1.15 ) ) { /* 15% more height... because fuck you, that's why ! */
$column++;
}
$blocks[$column][] = $md;
}
$menu['blocks'] = $blocks;
}
Java
12 Juillet, 2014 à 02:14
#130
return !finished || notFinished; // even horse can not understand this.