不言不语

您现在的位置是: 首页 >  PHP

PHP

php string 转int

2022-06-06PHP
php string 转int主要是通过强制类型转换来实现


1、$foo = (int)$foo;

2、$foo =intval($foo);

 

文章评论