分解小数字符串并转成整数

int explode_fint(str s,str sub,int n,int bs);
//s: 原字符串
//sub:搜索子串,只有第一个字符有效
//n:获取分解后的第几个字符串,0开始
//bs:倍数  2表示放大10倍;3表示放大100倍.....

示例

str ss="1|2.03|3.1415|-4.285";
int num;
num=explode_fint(ss,"|",0,3);//100
echo(num);echo("\r\n");
num=explode_fint(ss,"|",1,3);//203
echo(num);echo("\r\n");
num=explode_fint(ss,"|",2,3);//314
echo(num);echo("\r\n");
num=explode_fint(ss,"|",3,3);//-428
echo(num);echo("\r\n");

注意