Posts by Jhonny Jefferson • 66 points
2 posts
-
3
votes4
answers1466
viewsA: Camelcase conversion function
Here’s one more option: function toCamelCase($string) { //Converte todas as '-' em espaço em branco para a função ucwords funcionar. $string = str_replace('-', ' ', $string); return str_replace(' ',…
-
2
votes3
answers744
viewsA: Split array and sort
$texto = array( 'Ato001_1981', 'Ato002_1980', 'Ato003_1982', 'Ato003_1983', 'Ato004_1982', 'Ato013_1981', 'Ato013_1982', 'Ato013_1988', 'Ato031_1982', 'Ato032_1979', 'Ato039_1988', 'Ato060_1987',…