attachFiles!=null&&sizeof($this->attachFiles)>0){ $i=0; foreach($this->attachFiles as $value){ $arr["attachFiles[".$i."]"]=$value; $i = $i+1; } } return $arr; } }