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