测试Live Write
http://www.cnblogs.com/batcom/
<
<?php error_reporting(0); $zh = array('零','一','二','三','四', '五','六','七','八','九' ); print_r($zh);die; $intarr =range(0,9); $zkarray=array(); $intzharr=array_combine($intarr,$zh); $zk=range(0.01,0.99,0.01); foreach($zk as $key =>$value) { $tmpint=substr($value,2); $zkarray[]=$intzharr[$tmpint[0]].$intzharr[$tmpint[1]]; // if(strlen($value)==3) // { // $value=$value.'0'; // $zk[$key] = $value; // } } $finalarray=array_combine($zk,$zkarray); function change($items,&$key){ if(strlen($key)==3) { $key = $key.'0'; } } array_walk($finalarray,'change'); print_r($finalarray); ?>>