zoukankan      html  css  js  c++  java
  • PHP单词表

    输出语句
    print
    echo
    var_dump
    print_r
    printf
    变量的操作
    unset
    预定义变量
    $_SERVER
    $_GET
    $_POST
    $_REQUEST
    $_COOKIE,$_SESSION 会话技术
    $_FILES 文件上传
    $GLOBALS 变量作用域
    常量
    define()
    constant('常量名')
    get_defined_constants() 得到所有已经定义了的常量
    魔术常量
    __FUNCTION__ 当前函数的名字
    __METHOD__ 当前方法的名字
    __CLASS__ 当前类的名字
    __NAMESPACE__ 当前命名空间的名字
    进制转换
    十进制:dec
    二进制:bin
    八进制:oct
    十六进制:hex
    int 整型
    float 浮点数
    string 字符串
    Heredoc、Nowdoc 定界符
    resource 资源型
    array 数组
    函数的原型
    gettype 获取变量的类型
    settype 将变量var的类型设置成type
    isset 判断一个变量是否存在
    empty 判断变量是否为空
    is_type系列
    is_int或is_integer 判断一个变量是否为整型数据
    is_float或is_double
    is_numeric
    is_bool
    is_string
    is_scalar
    is_array
    is_null
    is_object
    is_resource
    其他运算符
    clone|new new是实例化一个对象,clone是克隆一个对象
    @ 错误抑制符
    instanceof 判断一个对象是否为一个类的实例
    循环结构
    do-while
    for
    foreach
    if
    if-else
    if-elseif-else
    switch
    while
    循环的中断语句
    continue 结束本次的当前循环
    break 跳出了整个循环
    文件载入
    include
    require
    脚本的执行控制
    die 终止脚本
    exit 终止脚本
    sleep 延迟执行
    函数
    function
    parameter 形式参数
    argument 实际参数
    return 返回值
    $GLOBALS
    global
    static 定义静态局部变量的关键字
    字符串函数
    strlen 获取字符串的长度
    substr 字符串截取函数
    strtolower 把字符串全部转换为小写
    strtoupper 把字符串全部转换为大写
    strrev 把字符串反转
    strpos 从左往右查找并返回字符串中某个字符的起始位置
    strrpos 从右往左进行查找
    strchr strstr的别名
    strrchr 从右往左截取指定位置
    trim 去除首尾空白字符后的结果
    str_replace 字符串替换函数
    str_repeat 重复字符串
    时间函数
    time 时间戳
    date 时间戳格式化
    strtotime 时间字符串,转换为一个时间戳
    microtime 微妙的时间戳字符串
    数学函数
    abs 取绝对值
    floor 向下取整
    ceil 向上取整
    round 四舍五入
    rand|mt_rand 获得一个指定区间的随机整数
    pow 求一个数的指数幂的值
    sqrt 求平方根
    max|min 求一组参数中的最大值或最小值
    is_nan 不是一个数字(not a number)返回 TRUE ,否则返回 FALSE
    数组
    element 数组
    index 下标
    key 键
    value 值
    foreach遍历函数
    key
    current
    next
    reset
    while+each+list遍历
    prev 向上移动数组指针
    end 重置到最后一个元素!
    each
    list
    数组的常用函数
    count
    range
    array_merge
    array_rand
    shuffle
    max|min
    array_keys
    array_values
    array_combine
    array_filp
    in_array
    array_key_exists
    array_search
    array_chunk
    implode
    explode
    extract
    compact
    回调函数
    array_map
    排序函数
    sort
    asort
    rsort
    arsort

  • 相关阅读:
    2017ccpc全国邀请赛(湖南湘潭) E. Partial Sum
    Codeforces Round #412 C. Success Rate (rated, Div. 2, base on VK Cup 2017 Round 3)
    2017 中国大学生程序设计竞赛 女生专场 Building Shops (hdu6024)
    51nod 1084 矩阵取数问题 V2
    Power收集
    红色的幻想乡
    Koishi Loves Segments
    Wood Processing
    整数对
    Room and Moor
  • 原文地址:https://www.cnblogs.com/developer-you/p/6093529.html
Copyright © 2011-2022 走看看