PHP函数集合

作者: 唐九十九藏 | 来源:发表于2017-09-24 15:15 被阅读0次

    define():

    用法


    str_replace(find,replace,string,count)

    使用方法


    header()

    www.smsyun.com/home-index-page-id-280.html

    php.net/manual/zh/function.header.php

    www.smsyun.com/home-index-page-id-184.html


    isset()

    判断变量是否已经被分配的内存,注意null也是被分配内存了。


    ini_set();

    代码里设置php.ini文件的值。

    http://www.jb51.net/article/45326.htm


    clearstatcache(void)

    www.t086.com/code/php/function.php-clearstatcache.php


    $_SERVER

    http://php.net/manual/zh/reserved.variables.server.php


    is_array()

    —检测变量是否是数组



    array_merge()

    合并一个或多个数组

    php.net/manual/zh/function.array-merge.php


    array_slice()  分割字符串。

    php.net/manual/zh/function.array-slice.php


    extract();

    php.net/manual/zh/function.extract.php


    function dirname($path,$levels=1) {}

    php.net/manual/en/function.dirname.php

    这个函数其实是返回上一级目录。


    file_exists();

    Checks whether a file or directory exists

    www.cnblogs.com/baochuan/archive/2012/05/06/2445822.html


    include()

    php.net/manual/zh/function.include.php


    function_exists();

    Return true if the given function has been define

    php.net/manual/en/function.function-exists.php


    date_default_timezone_get()

    php.net/manual/zh/function.date-default-timezone-get.php

    获取运行脚本时的时区代码。






    is_array—检测变量是否是数组

    array_merge

    array_slice

    extract

    functionbasename($path,$suffix=null) {}

    http://www.cnblogs.com/baochuan/archive/2012/05/06/2445822.html

    http://php.net/manual/zh/function.include.php

    function_exists

    date_default_timezone_get

    一个每日更新的干货公众号

    相关文章

      网友评论

        本文标题:PHP函数集合

        本文链接:https://www.haomeiwen.com/subject/qlzysxtx.html