class_php
注册会员

UID 74872
精华
0
积分 176
帖子 86
金钱 176 喜悦币
威望 0
人脉 0
阅读权限 20
注册 2006-6-12
状态 离线
|
同时会JAVA和PHP请进...
public static byte[] deCode(String src){ //还原
if(src.length()<2)return new byte[0];
byte[] dest=new byte[src.length()/2];
byte rb;
String str;
Arrays.fill(dest,(byte)0);
int index=0;
for(int ii=0;ii<src.length()-1;ii++){
str="#"+src.substring(ii,ii+2);
rb=(byte)Integer.decode(str).intValue();
dest[index++]=rb;
ii++;
}
return dest;
}
谁能帮我这上面的JAVA代码转成PHP的?谢谢..
|
|