我想转换这些类型的值,'3','2.34','0.234343',等多项.我们可以在JavaScript中使用Number(),但PHP中是否有类似的方法?
'3'
'2.34'
'0.234343'
Number()
Input Output '2' 2 '2.34' 2.34 '0.3454545' 0.3454545
php casting type-conversion
casting ×1
php ×1
type-conversion ×1