$ary_phase = array("\r\n","\r"," ","\n");
$data['question'] = str_replace($ary_phase,"",$this->input->post('question'));
- Apr 18 Wed 2012 11:16
-
[PHP]取代textarea裡的換行字元
$ary_phase = array("\r\n","\r"," ","\n");
$data['question'] = str_replace($ary_phase,"",$this->input->post('question'));
請先 登入 以發表留言。