
php学习
Brice_Li
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
李炎恢ecshop2.7.2安装教程与PHP5.5x不兼容的处理方法
装ECShop2.7.2运行后会出现了一堆问题,主要是因为PHP版本过高引起的,不愿意降低版本,则只能一个个解决啦!这些问题包括:preg_replace、cls_image::gd_version、end(explode('.', $tmp))。 一、关于preg_replace 因为使用PHP5.5.x,ECShop安装完成之后出现了下面提示,特别是在cls_template.ph...转载 2018-11-04 11:40:42 · 328 阅读 · 0 评论 -
echo、print、printf 、sprintf之间的区别
1.echo函数:输出字符串,返回类型为void; 2.print函数:输出字符串,返回类型为int; echo(print "hello world!"); 先输出hello world 再输出函数返回值 1; echo(print ""); 只输出1; echo(echo"hello world!"); 运行会报错,echo没有返回值,不能这样用 因为echo没有返...转载 2018-11-04 14:49:24 · 629 阅读 · 0 评论 -
PHP数据类型相关函数 gettype() ,settype()
PHP 支持如下所示的基本数据类型: Integer(整数)、Float(浮点数,也叫Double,双精度)、String(字符串)、Boolean(布尔)、Array(数组)、Object(对象). 1.类型转换 $sum=0; $total=(float)$sum; 2.gettype()函数 可以获取变量的类型 返回值为数据类型的字符串 $sum = 1.2; echo gett...原创 2018-11-04 15:35:18 · 731 阅读 · 0 评论