$names = "John, Doe, Mike"; $array = Firebase\Util\Util::makeArray($names, ","); print_r($array);
Array ( [0] => John [1] => Doe [2] => Mike )
$numbers = "1, 2, 3, 4, 5"; $array = Firebase\Util\Util::makeArray($numbers, ", "); print_r($array);
Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 )In the above example, we defined a string of numbers separated by a comma and space. We then used the `makeArray()` function to create an array from this string, using the comma and space as a separator. The `Firebase\Util\Util` package/library is part of the Firebase PHP SDK, which is a set of libraries for working with Firebase Realtime Database, Firebase Authentication, and Firebase Cloud Messaging.