编辑代码

<?php 
//JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。 
function convertCardData($input) {
    // 将输入字符串拆分成每两个字符组成的数组
    $bytes = str_split($input, 2);
    
    // 反转数组
    $reversedBytes = array_reverse($bytes);
    
    // 将数组重新组合成字符串
    $output = implode('', $reversedBytes);
    
    return $output;
}

// ECF4F404

echo convertCardData('04F9203B');

//3B20F904