mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-11-23 13:59:29 +00:00
Improved numbers_list_to_array casting.
This commit is contained in:
parent
6c100fecce
commit
620e4ac23b
@ -33,10 +33,10 @@ function check_post_parametres(array $varList) : bool {
|
|||||||
/**
|
/**
|
||||||
* Convert a list of numbers (anything with IDs) comma-separated to an array
|
* Convert a list of numbers (anything with IDs) comma-separated to an array
|
||||||
*
|
*
|
||||||
* @param String $list The input list
|
* @param string $list The input list
|
||||||
* @return Array The list of user / an empty list in case of errors
|
* @return array The list of user / an empty list in case of errors
|
||||||
*/
|
*/
|
||||||
function numbers_list_to_array($list) : array {
|
function numbers_list_to_array(string $list) : array {
|
||||||
//Split the list into an array
|
//Split the list into an array
|
||||||
$array = explode(",", $list);
|
$array = explode(",", $list);
|
||||||
$usersList = array();
|
$usersList = array();
|
||||||
|
Loading…
Reference in New Issue
Block a user