随笔分类 - PHP
摘要:func_get_arg — Return an item from the argument list func_get_args — Returns an array comprising a function's argument list func_num_args — Returns th
阅读全文
摘要:面向对象 面向对象基础 面向对象 什么是类? 具有相同属性(特征)和方法(行为)的一系列个体的集合,类是一个抽象的概念。 什么是对象? 从类中,拿到的具有具体属性值的个体,称为对象。对象是一个具体的个体。 eg:人类;张三 类和对象的关系? 类是对象的抽象化!对象是类的具体化! 类仅仅表明这类对象有
阅读全文
摘要:PHP 理论知识 常用的超全局变量(8个) $_GET >get传送方式 $_POST >post传送方式 $_REQUEST >可以接收到get和post两种方式的值 $GLOBALS >所有的变量都放在里面 $_FILE >上传文件使用 $_SERVER >系统环境变量 $_SESSION >会
阅读全文
摘要:PHP 理论知识 常用的超全局变量(8个) get传送方式 post传送方式 可以接收到get和post两种方式的值 所有的变量都放在里面 上传文件使用 系统环境变量 会话控制的时候会用到 会话控制的时候会用到 ,`$HTTP_RAW_POST_DATA php://input` 的区别? 是获取表
阅读全文
摘要:str_word_count (PHP 4 = 4.3.0, PHP 5, PHP 7) str_word_count — Return information about words used in a string str_word_count — 返回字符串中单词的使用情况 Descripti
阅读全文
摘要:wordwrap (PHP 4 = 4.0.2, PHP 5, PHP 7) wordwrap — Wraps a string to a given number of characters wordwrap — 打断字符串为指定数量的字串 Description Parameters str T
阅读全文
摘要:str_split (PHP 5, PHP 7) str_split — Convert a string to an array str_split — 将字符串转换为数组 Description Parameters string The input string. 输入字符串。 split_l
阅读全文
摘要:str_shuffle (PHP 4 = 4.3.0, PHP 5, PHP 7) str_shuffle — Randomly shuffles a string str_shuffle — 随机打乱一个字符串 Description Caution This function does not
阅读全文
摘要:str_repeat (PHP 4, PHP 5, PHP 7) str_repeat — Repeat a string str_repeat — 重复一个字符串 Description Parameters input The string to be repeated. 待操作的字符串。 mu
阅读全文
摘要:str_pad (PHP 4 = 4.0.1, PHP 5, PHP 7) str_pad — Pad a string to a certain length with another string str_pad — 使用另一个字符串填充字符串为指定长度 Description Paramete
阅读全文
摘要:冒泡排序 它重复地走访过要排序的数列,一次比较两个元素,如果他们的顺序错误就把他们交换过来。走访数列的工作是重复地进行直到没有再需要交换,也就是说该数列已经排序完成。 这个算法的名字由来是因为越大的元素会经由交换慢慢“浮”到数列的顶端,故名冒泡排序 算法原理 冒泡排序算法的运作如下:(从后往前) 比
阅读全文
摘要:rtrim (PHP 4, PHP 5, PHP 7) rtrim — Strip whitespace (or other characters) from the end of a string rtrim — 删除字符串末端的空白字符(或者其他字符) Description Parameter
阅读全文
摘要:ltrim (PHP 4, PHP 5, PHP 7) ltrim — Strip whitespace (or other characters) from the beginning of a string ltrim — 删除字符串开头的空白字符(或其他字符) Description Para
阅读全文
摘要:trim (PHP 4, PHP 5, PHP 7) trim — Strip whitespace (or other characters) from the beginning and end of a string trim — 去除字符串首尾处的空白字符(或者其他字符) Descripti
阅读全文
摘要:implode (PHP 4, PHP 5, PHP 7) implode — Join array elements with a string implode — 将一个一维数组的值转化为字符串 Description Note: implode() can, for historical re
阅读全文
摘要:explode (PHP 4, PHP 5, PHP 7) explode — Split a string by string explode — 使用一个字符串分割另一个字符串 Description Parameters delimiter The boundary string. 边界上的分
阅读全文
摘要:ord (PHP 4, PHP 5, PHP 7) ord — Return ASCII value of character ord — 返回字符的 ASCII 码值 Description Parameters string A character. 一个字符。 Return Values Re
阅读全文
摘要:chr (PHP 4, PHP 5, PHP 7) chr — Return a specific character chr — 返回指定的字符 Description Parameters ascii The extended ASCII code. Ascii 码。 Values outsid
阅读全文
摘要:addslashes (PHP 4, PHP 5, PHP 7) addslashes — Quote string with slashes addslashes — 使用反斜线引用字符串 Description A use case of addslashes() is escaping the
阅读全文
摘要:addcslashes (PHP 4, PHP 5, PHP 7) addcslashes — Quote string with slashes in a C style addcslashes — 以 C 语言风格使用反斜线转义字符串中的字符 Description Parameters str
阅读全文

浙公网安备 33010602011771号