![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
函数
lasdaaa
这个作者很懒,什么都没留下…
展开
-
php 裁切图片 显示
<?php $thumb = new Thumb(); $thumb->loadImage("http://a0.att.hudong.com/56/12/01300000164151121576126282411.jpg"); $thumb->crop("360",'150'); $a = $thumb->show(false,true); echo $a;class Thumb { private $image;...原创 2020-10-26 15:54:12 · 175 阅读 · 0 评论 -
file_get_contents 超时 参数 stream_context_create()
stream_context_create作用:创建并返回一个文本数据流并应用各种选项,可用于fopen(),file_get_contents()等过程的超时设置、代理服务器、请求方式、头信息设置的特殊过程。函数原型:resource stream_context_create ([ array $options [, array $params ]] )在使用file_get_转载 2017-11-03 17:00:22 · 433 阅读 · 0 评论 -
php global 要点
1、global 函数体外定义后 函数体中不能访问(如果要访问需要在函数体中声明一下这个变量为global),在函数体中定义global 函数体外可以访问这个变量;2、global 在函数外定义后,各个函数体 可以通过声明global 变量名字; 来调用全局变量。3、注意: 在函数体中如果重新定义了 由函数体外的global变量,那么该全局变量也会改变; <?php...原创 2018-10-03 10:56:44 · 2075 阅读 · 0 评论 -
sprintf() 函数 floatval()函数
把百分号(%)符号替换成一个作为参数进行传递的变量:转载 2019-07-25 11:42:54 · 624 阅读 · 0 评论 -
PHP函数 笔记
is_callable()函数的用法详解检测参数是否为合法的可调用结构 演示代码如下:<?phpclass test { static function a() { return "test"; }}class abc { public function a($Object,$funcName){ if (!is_callable(array($Ob...原创 2019-09-26 17:47:47 · 124 阅读 · 0 评论