Posts by Tsh • 11 points
1 post
-
1
votes3
answers803
viewsA: Populate array dynamically
You can create a dynamic array using "[]": $array['labels'][] = 'Jan'; $array['labels'][] = 'Mar'; $array['labels'][] = 'Fev'; var_dump($array); outworking: array (size=1) 'labels' => array…