$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'));