![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PHP
文章平均质量分 64
Kano_W
知行合一,止于至善。
展开
-
CI anchor() 函数
在阅读CI文档时发现该方法,查阅发现这是个挺有意思的辅助方法。if ( ! function_exists('anchor')) { /** * Anchor Link * * Creates an anchor based on the local URL. * * @param string the URL * @param string the link title...原创 2018-04-23 10:29:38 · 425 阅读 · 0 评论 -
PHP全局变量global和$GLOBALS详解
变量的范围即它定义的上下文背景(也就是它的生效范围)。大部分的 PHP 变量只有一个单独的范围。这个单独的范围跨度同样包含了 include 和 require 引入的文件。 $a = 1; include 'b.php'; 这里变量 $a 将会在包含文件 b.inc 中生效。但是,在用户自定义函数中,一个局部函数范围将被引入。任何用于函数内部的变量按缺省情况将被限制在局部函数范围内。例如...原创 2018-12-03 18:10:38 · 1995 阅读 · 0 评论