我希望得到一些关于php的想法/帮助。
我使用以下内容返回一个值,在我的情况下,该值为612B十六进制小数。我需要翻转61&2B并制成2B61。
$skillsearch1 = odbc_exec($conn1,"select cast(cast(reverse(substring(strevent, 1, 1))as varbinary)as int) from USER_EVENT where strUserID='loneranger'");
$skillfound1 = odbc_result($skillsearch1,1);
谢谢。
编辑1:
其中
str_split($test, 2)));
我只需要把它改成
str_split($test, 1)));
我得到了我想要的。谢谢你的帮助。
$test = '1234';
$result = implode( // 3. join array to string
array_reverse( // 2. reverse order of this array
str_split($test, 2))); // 1. convert string to array with two chars values
var_dump($result);