public function formatMobile(array $list)
    {
        return implode(',', array_unique(array_map(function ($value) {
            return is_array($value) ? "{$value['number']}" : $value;
        }, $list)));
    }
public function formatMobile(array $list)
    {
        return implode(',', array_unique(array_map(function ($value) {
            return is_array($value) ? "{$value['number']}" : $value;
        }, $list)));
    }
public function formatMobile ( array $ list ) { return implode ( ',' , array_unique ( array_map ( function ( $ value ) { return is_array ( $ value ) ? "{$value['number']}" : $ value ; } , $ list ) ) ) ; }
Formatting a mobile number from the list of mobile numbers.

@param array $list

@return string
Formatting a mobile number from the list of mobile numbers .