// I think its $post if not then try $this->post$post['posts_int'] = intval(str_replace(',', '', $post['posts']));