从键盘输入两个字符串a和b,要求不用库函数strcat把串b的第五个字符连接到串a中;如果b的长度小于5

2025-04-28 06:47:24
推荐回答(1个)
回答1:

if(strlen($b)>5){
$a = $a.append($b[4]);
}else{
$a.=$b;
}