标签:php
字符串转数字
echo $a + $b;
$a = "123a";$b = 1; 124
$a = "123";$b = 1; 124
$a = "a123";$b = 1; 1
数字转字符串
.操作符
JS
数字转字符串
var i = "123a";var j = 1;
document.write(i+j); 字符串:123a1
字符串转数字
parseInt()
5. 赋值操作符赋完值,还返回赋值的值
$a = 5;
$b = 10;
$c = ($a=$b);
echo $c; 10
6.
标签:php
原文地址:http://bysowhat.blog.51cto.com/4478944/1573992