rendered paste body<?php
$str = "#normalpeoplehateme {12 125648} {22 149887} {04 76722} {14 139826} {24 1} {06 53023} {16 150364} {08 65666} {18 151804} {01 115715} {11 88371} {03 91335} {21 153170} {13 152131} {05 67861} {23 139780} {15 138017} {07 57813} {00 132170} {17 142347} {10 78533} {09 71933} {02 106630} {19 156418} {20 155757}";
// Start spliting the string
$data = explode(' {', str_replace('}','',$str));
// Save the channel name
$channel = array_shift($data);
$chan_activity = array();
foreach ($data as $part) {
// Set the key and value in the proper array
list($key, $value) = explode(' ', $part);
$chan_activity[$key] = $value;
}
print_r($chan_activity);
?>