兩個(gè)字符串相加 php字符串里的數(shù)字能相加嗎?
php字符串里的數(shù)字能相加嗎?是,添加時(shí),它將自動(dòng)轉(zhuǎn)換為數(shù)值進(jìn)行添加,例如,$a=“123”$B=“456”echo$a$B//output 579echo$a.$B//output 123456
php字符串里的數(shù)字能相加嗎?
是,添加時(shí),它將自動(dòng)轉(zhuǎn)換為數(shù)值進(jìn)行添加,例如,$a=“123”$B=“456”echo$a$B//output 579echo$a.$B//output 123456