Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $list = array();
- foreach ($redis->hGetAll("reply_post:{$id}") as $l => $r) {
- if ($l[0] !== "l") {
- $list[substr($l, 2)] = $r;
- }
- }
- ksort($list, SORT_NUMERIC);
- $c[$c_id]["post_replies"] = array_values($list);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement