โคดที่ใช้งาน
โค้ด: เลือกทั้งหมด
public function users_to_query() {
$responders = $this->get_data('responders');
$users = array(
$this->get_data('poster_id'),
);
if (is_array($responders)) {
foreach ($responders as $responder) {
$users[] = $responder['poster_id'];
}
}
echo "trim_user_ary : ";
$post_id = $this->get_data('post_id');
print_r($this->trim_user_ary($users));
echo $post_id;
return $this->trim_user_ary($users);
}