``` $fav_bands = array(); array_push($fav_bands, "Maroon 5"); array_push($fav_bands, "Bruno Mars"); array_push($fav_bands, "Nickelback"); array_push($fav_bands, "Katy Perry"); array_push($fav_bands, "Macklemore"); ``` ``` Another cool array function is `count()`. Passing an array to `count()` will return the number of elements in that array. Like this: ``` ``` print count($fav_bands); // prints 5 ``` ```
``` print count($fav_bands); // prints 5 ``` ```
校長室 教務處學務處總務處輔導室家長會媒體報導 北小臉書北小附幼臉書課程計畫平台