简单问题 我想将1234.56这样的人民币转换成1,234.56 这样的形式..用money_format函数会生成字母前缀,有没有更好的办法!你别说让我再把生成的字母前缀去掉就好了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 实在不行,自己写个函数,就OK了~大概的代码如下:$money=123.45;$array=explode($money,".");for(i=0;i<count($array);i+=3){$temp=$temp.".".substr($array[0],$u,3);}echo $temp; 这个函数有一定的问题,呵呵~那我改动下~$money=123.45;$array=explode($money,".");for(i=count($array);i>;i-=3){$temp=".substr($array[0],-$i,3).$temp.";}echo $temp; // english notation (default)$english_format_number = number_format($number);// 1,235没有所谓的前缀阿 请教:关于分页的问题! 一个没有域名的私人PC有没有可能架设成邮件服务器? php asp.net那个开发语言更好! 请高手来看下 正则表达式的问题,看起来简单,但是我就是实现不了...在线等候,成功马上给分 php中如何达到vbscript中midb函数功能的 关于页面参数传递的问题! apache做的服务器,用外地用户用域名不能访问,而用ip可以,是怎么回事?域名是买的国际域名 初学者的简单问题 高手请教! header前echo为什么不报错 类似与URL转发隐藏路径一个问题 请问,如何从PHP代码里面找后门?
$array=explode($money,".");
for(i=0;i<count($array);i+=3)
{
$temp=$temp.".".substr($array[0],$u,3);
}
echo $temp;
$array=explode($money,".");
for(i=count($array);i>;i-=3)
{
$temp=".substr($array[0],-$i,3).$temp.";
}
echo $temp;
$english_format_number = number_format($number);
// 1,235没有所谓的前缀阿