hey, please help me sort this data out.
Array ( [0] => Successful response for: set username [1] => Successful response for: set password [2] => Successful response for: set server [3] => Successful response for: services [4] => State Notification acquiring-network [5] => Successful response for: sign-in [6] => State Notification connecting [7] => Client Own Id Notification 5551000008535 [8] => State Notification synchronizing [9] => Enabled Services Notification PTT text-chat [10] => Enabled Services Notification PTT [11] => Client Own Name Notification "Driver 1" [12] => Client Own Name Notification "Driver 1" [13] => State Notification online [14] => Call Originating Notification chat-room 0 "" [15] => Unknown Notification [16] => ----call modified chat-room 991000008536 "Drivers"---- [17] => Unknown Notification [18] => ----call connected---- [19] => State change: acquiring-network [20] => State change: connecting [21] => Client Own Id: 5551000008535 [22] => State change: synchronizing [23] => Enabled Services: [24] => Enabled Services: [25] => Client Own Name: Driver 1 [26] => Client Own Name: Driver 1 [27] => State change: online [28] => Successful response for: get-group-members [29] => Group Contact Notification contact-list contact 5551000008539 name "Driver 2" state offline [30] => Group Contact Notification contact-list contact 5551000008540 name "Driver 3" state offline [31] => Group Contact Notification contact-list contact 5551000008541 name "Driver 4" state offline [32] => Group member contact-list False 5551000008539 [['name', 'Driver 2'], ['state', 'offline']] [33] => Group member contact-list False 5551000008540 [['name', 'Driver 3'], ['state', 'offline']] [34] => Group member contact-list False 5551000008541 [['name', 'Driver 4'], ['state', 'offline']] [35] => State Notification disconnecting [36] => Successful response for: sign-out [37] => Unknown Notification [38] => ----call ended normally---- [39] => Unknown Notification [40] => ----talker none---- [41] => Client Own Id Notification 0 [42] => State Notification offline [43] => State change: disconnecting [44] => Client Own Id: 0 [45] => State change: offline )
I need an array of users and their ID's
like:
$users = array(
'Driver 2' => '5551000008539',
'Driver 3' => '5551000008540',
etc...
Thanks