PHP之string
string
addcslashes()
- Quote string with slashes in a C style
- 以 C 语言风格使用反斜线转义字符串中的字符
addslashes()
- Quote string with slashes
- 使用反斜线引用字符串
bin2hex()
- Convert binary data into hexadecimal representation
- 函数把包含数据的二进制字符串转换为十六进制值
chop()
- Alias of rtrim
- rtrim 的别名
chr()
- Return a specific character
- 返回指定的字符
chunk_split()
- Split a string into smaller chunks
- 将字符串分割成小块
convert_cyr_string()
- Convert from one Cyrillic character set to another
- 将字符由一种 Cyrillic 字符转换成另一种
convert_uudecode()
- Decode a uuencoded string
- 解码一个 uuencode 编码的字符串
convert_uuencode()
- Uuencode a string
- 使用 uuencode 编码一个字符串
count_chars()
- Return information about characters used in a string
- 返回字符串所用字符的信息
crc32()
- Calculates the crc32 polynomial of a string
- 计算一个字符串的 crc32 多项式
crypt()
- One-way string hashing
- 单向字符串散列
echo()
- Output one or more strings
- 输出一个或多个字符串
explode()
- Split a string by string
- 使用一个字符串分割另一个字符串
fprintf()
- Write a formatted string to a stream
- 将格式化后的字符串写入到流
get_html_translation_table()
- Returns the translation table used by htmlspecialchars and htmlentities
- 返回使用 htmlspecialchars 和 htmlentities 后的转换表
hebrev()
- Convert logical Hebrew text to visual text
- 将逻辑顺序希伯来文(logical-Hebrew)转换为视觉顺序希伯来文(visual-Hebrew)
hebrevc()
- Convert logical Hebrew text to visual text with newline conversion
- 将逻辑顺序希伯来文(logical-Hebrew)转换为视觉顺序希伯来文(visual-Hebrew),并且转换换行符
hex2bin()
- Decodes a hexadecimally encoded binary string
- 转换十六进制字符串为二进制字符串
html_entity_decode()
- Convert all HTML entities to their applicable characters
htmlentities()
- Convert all applicable characters to HTML entities
- 将字符转换为 HTML 转义字符
htmlspecialchars_decode()
- Convert special HTML entities back to characters
- 将特殊的 HTML 实体转换回普通字符
htmlspecialchars()
- Convert special characters to HTML entities
- 将特殊字符转换为 HTML 实体
implode()
- Join array elements with a string
- 将一个一维数组的值转化为字符串
join()
- Alias of implode
- 别名 implode
lcfirst()
- Make a string's first character lowercase
- 使一个字符串的第一个字符小写
levenshtein()
- Calculate Levenshtein distance between two strings
- 计算两个字符串之间的编辑距离
localeconv()
- Get numeric formatting information
ltrim()
- Strip whitespace (or other characters) from the beginning of a string
- 删除字符串开头的空白字符(或其他字符)
md5_file()
- Calculates the md5 hash of a given file
- 计算指定文件的 MD5 散列值
md5()
- Calculate the md5 hash of a string
- 计算字符串的 MD5 散列值
metaphone()
- Calculate the metaphone key of a string
money_format()
- Formats a number as a currency string
- 将数字格式化成货币字符串
nl_langinfo()
- Query language and locale information
nl2br()
- Query language and locale information
- 在字符串所有新行之前插入 HTML 换行标记
number_format()
- Format a number with grouped thousands
- 以千位分隔符方式格式化一个数字
ord()
- Return ASCII value of character
- 返回字符的 ASCII 码值
parse_str()
- Parses the string into variables
- 将字符串解析成多个变量
print()
- Output a string
- 输出字符串
printf()
- Output a formatted string
- 输出格式化字符串
quoted_printable_decode()
- Convert a quoted-printable string to an 8 bit string
- 将 quoted-printable 字符串转换为 8-bit 字符串
quoted_printable_encode()
- Convert a 8 bit string to a quoted-printable string
- 将 8-bit 字符串转换成 quoted-printable 字符串
quotemeta()
- Quote meta characters
- 转义元字符集
rtrim()
- Strip whitespace (or other characters) from the end of a string
- 删除字符串末端的空白字符(或者其他字符)
setlocale()
- Set locale information
- 设置地区信息
sha1_file()
- Calculate the sha1 hash of a file
- 计算文件的 sha1 散列值
sha1()
- Calculate the sha1 hash of a string
- 计算字符串的 sha1 散列值
similar_text()
- Calculate the similarity between two strings
- 计算两个字符串的相似度
soundex()
- Calculate the soundex key of a string
sprintf()
- Return a formatted string
sscanf()
- Parses input from a string according to a format
- 根据指定格式解析输入的字符
str_getcsv()
- Parse a CSV string into an array
- 解析 CSV 字符串为一个数组
str_ireplace()
- Case-insensitive version of str_replace
- str_replace 的忽略大小写版本
str_pad()
- Pad a string to a certain length with another string
- 使用另一个字符串填充字符串为指定长度
str_repeat()
- Repeat a string
- 重复一个字符串
str_replace()
- Replace all occurrences of the search string with the replacement string
- 子字符串替换
str_rot13()
- Perform the rot13 transform on a string
- 对字符串执行 ROT13 转换
str_shuffle()
- Randomly shuffles a string
- 随机打乱一个字符串
str_split()
- Convert a string to an array
- 将字符串转换为数组
str_word_count()
- Return information about words used in a string
- 返回字符串中单词的使用情况
strcasecmp()
- Binary safe case-insensitive string comparison
- 二进制安全比较字符串(不区分大小写)
strchr()
- Alias of strstr
- 别名 strstr
strcmp()
- Binary safe string comparison
- 二进制安全字符串比较
strcoll()
- Locale based string comparison
- 基于区域设置的字符串比较
strcspn()
- Find length of initial segment not matching mask
- 获取不匹配遮罩的起始子字符串的长度
strip_tags()
- Strip HTML and PHP tags from a string
- 从字符串中去除 HTML 和 PHP 标记
stripcslashes()
- Un-quote string quoted with addcslashesshes 转义的字符串
- 反引用一个使用 addcsla
stripos()
- Find the position of the first occurrence of a case-insensitive substring in a string
- 查找字符串首次出现的位置(不区分大小写)
stripslashes()
- Un-quotes a quoted string
- 反引用一个引用字符串
stristr()
- Case-insensitive strstr
- strstr 函数的忽略大小写版本
strlen()
- Get string length
- 获取字符串长度
strnatcasecmp()
- Case insensitive string comparisons using a "natural order" algorithm
- 使用“自然顺序”算法比较字符串(不区分大小写)
strnatcmp()
- String comparisons using a "natural order" algorithm
- 使用自然排序算法比较字符串
strncasecmp()
- Binary safe case-insensitive string comparison of the first n characters
- 二进制安全比较字符串开头的若干个字符(不区分大小写)
strncmp()
- Binary safe string comparison of the first n characters
- 二进制安全比较字符串开头的若干个字符
strpbrk()
- Search a string for any of a set of characters
- 在字符串中查找一组字符的任何一个字符
strpos()
- Find the position of the first occurrence of a substring in a string
- 查找字符串首次出现的位置
strrchr()
- Find the last occurrence of a character in a string
- 查找指定字符在字符串中的最后一次出现
strrev()
- Reverse a string
- 反转字符串
strripos()
- Find the position of the last occurrence of a case-insensitive substring in a string
- 计算指定字符串在目标字符串中最后一次出现的位置(不区分大小写)
strrpos()
- Find the position of the last occurrence of a substring in a string
- 计算指定字符串在目标字符串中最后一次出现的位置
strspn()
- Finds the length of the initial segment of a string consisting entirely of characters contained within a given mask
- 计算字符串中全部字符都存在于指定字符集合中的第一段子串的长度。
strstr()
- Find the first occurrence of a string
- 查找字符串的首次出现
strtok()
- Tokenize string
- 标记分割字符串
strtolower()
- Make a string lowercase
- 将字符串转化为小写
strtoupper()
- Make a string uppercase
- 将字符串转化为大写
strtr()
- Translate characters or replace substrings
- 转换指定字符
substr_compare()
- Binary safe comparison of two strings from an offset, up to length characters
- 二进制安全比较字符串(从偏移位置比较指定长度)
substr_count()
- Count the number of substring occurrences
- 计算字串出现的次数
substr_replace()
- Replace text within a portion of a string
- 替换字符串的子串
substr()
- Return part of a string
- 返回字符串的子串
trim()
- Strip whitespace (or other characters) from the beginning and end of a string
- 去除字符串首尾处的空白字符(或者其他字符)
ucfirst()
- Make a string's first character uppercase
- 将字符串的首字母转换为大写
ucwords()
- Uppercase the first character of each word in a string
- 将字符串中每个单词的首字母转换为大写
vfprintf()
- Write a formatted string to a stream
- 将格式化字符串写入流
vprintf()
- Output a formatted string
- 输出格式化字符串
vsprintf()
- Return a formatted string
- 返回格式化字符串
wordwrap()
- Wraps a string to a given number of characters
- 打断字符串为指定数量的字串
CRYPT_SALT_LENGTH integer
CRYPT_STD_DES integer
CRYPT_EXT_DES integer
CRYPT_MD5 integer
CRYPT_BLOWFISH integer
HTML_SPECIALCHARS (integer)
HTML_ENTITIES (integer)
ENT_COMPAT (integer)
ENT_QUOTES (integer)
ENT_NOQUOTES (integer)
ENT_IGNORE (integer)
ENT_SUBSTITUTE (integer)
ENT_DISALLOWED (integer)
ENT_HTML401 (integer)
ENT_XML1 (integer)
ENT_XHTML (integer)
ENT_HTML5 (integer)
CHAR_MAX (integer)
LC_CTYPE (integer)
LC_NUMERIC (integer)
LC_TIME (integer)
LC_COLLATE (integer)
LC_MONETARY (integer)
LC_ALL (integer)
LC_MESSAGES (integer)
STR_PAD_LEFT (integer)
STR_PAD_RIGHT (integer)
STR_PAD_BOTH (integer)
PHP之string的更多相关文章
- 透过WinDBG的视角看String
摘要 : 最近在博客园里面看到有人在讨论 C# String的一些特性. 大部分情况下是从CODING的角度来讨论String. 本人觉得非常好奇, 在运行时态, String是如何与这些特性联系上的 ...
- JavaScript String对象
本编主要介绍String 字符串对象. 目录 1. 介绍:阐述 String 对象的说明以及定义方式. 2. 实例属性:介绍 String 对象的实例属性: length. 3. 实例方法:介绍 St ...
- ElasticSearch 5学习(9)——映射和分析(string类型废弃)
在ElasticSearch中,存入文档的内容类似于传统数据每个字段一样,都会有一个指定的属性,为了能够把日期字段处理成日期,把数字字段处理成数字,把字符串字段处理成字符串值,Elasticsearc ...
- [C#] string 与 String,大 S 与小 S 之间没有什么不可言说的秘密
string 与 String,大 S 与小 S 之间没有什么不可言说的秘密 目录 小写 string 与大写 String 声明与初始化 string string 的不可变性 正则 string ...
- js报错: Uncaught RangeError: Invalid string length
在ajax请求后得到的json数据,遍历的时候chrome控制台报这个错误:Uncaught RangeError: Invalid string length,在stackoverflow查找答案时 ...
- c# 字符串连接使用“+”和string.format格式化两种方式
参考文章:http://www.liangshunet.com/ca/201303/218815742.htm 字符串之间的连接常用的两种是:“+”连接.string.format格式化连接.Stri ...
- 【手记】注意BinaryWriter写string的小坑——会在string前加上长度前缀length-prefixed
之前以为BinaryWriter写string会严格按构造时指定的编码(不指定则是无BOM的UTF8)写入string的二进制,如下面的代码: //将字符串"a"写入流,再拿到流的 ...
- JavaScript中String对象的方法介绍
1.字符方法 1.1 charAt() 方法,返回字符串中指定位置的字符. var question = "Do you like JavaScript?"; alert(ques ...
- 在多线程编程中lock(string){...}隐藏的机关
常见误用场景:在订单支付环节中,为了防止用户不小心多次点击支付按钮而导致的订单重复支付问题,我们用 lock(订单号) 来保证对该订单的操作同时只允许一个线程执行. 这样的想法很好,至少比 lock( ...
- BCL中String.Join的实现
在开发中,有时候会遇到需要把一个List对象中的某个字段用一个分隔符拼成一个字符串的情况.比如在SQL语句的in条件中,我们通常需要把List<int>这样的对象转换为“1,2,3”这样的 ...
随机推荐
- ASP.NET系列:自定义配置节点的复用
appSettings太简单,为每个程序自定义配置节点太复杂,因此要解决app.config&web.config自定义配置的复用问题. 1.读取不依赖SectionName,根节点可以定义为 ...
- XML--使用XML来将字符串分隔成行数据
DECLARE @xml XML SET @xml=CAST(REPLACE('<ROOT><X>'+'AA,AB,AC,AD'+'</X></ROOT> ...
- vs2015上使用github进行版本控制
我是用的是vs2015企业版 一.首先创建项目,右下角选择新建git存储库 二.在工具栏选择团队-管理连接,打开团队资源管理器,点击同步 . 三.选择下面的发布选项 四.在gitgub上新建仓库,得到 ...
- WPF上下滚动字幕
XAML代码: <local:WorkSpaceContent x:Class="SunCreate.CombatPlatform.Client.NoticeMarquee" ...
- sharepoint 2013 升级要求
1. 安装过程合理: A. 可以同时在管理中心.两台前端.搜索服务器上安装重新发布的SP1补丁包(所提供的链接) B. 等待所有SP1补丁包安装完成,依次在管理中心.两台前端.搜索服务器上运行配置向导 ...
- iOS 的各种识别码
在iOS系统中,获取设备唯一标识的方法有很多: 1. x UDID (Unique Device Identifier,已过期) 2. x OPEN UDID (已过期) 3. 广告标示符(IDFA- ...
- LockBox的安装
LockBox是一套加密解密库,下载地址:http://sourceforge.net/projects/tplockbox/ 我的安装的操作系统:win7 64位 安装步骤如下: 一,安装: 安装时 ...
- linux 下的 crontab 定时任务工具
以下内容转自:https://www.cnblogs.com/longjshz/p/5779215.html 在LINUX中,周期执行的任务一般由cron这个守护进程来处理[ps -ef|grep c ...
- 记一名软件实施自学转Java开发,附学习计划
2015年毕业到现在已经3年了,而我转型开发已经有一年的时间了.写这篇文章除了记录,主要还是想分享一些经历给想要转型开发的同学们,不要走那些我走过的弯路. 2015年入职了第一家公司,当时是做的分销系 ...
- 《条目二十九:对于逐个字符的输入请考虑istreambuf_iterator》
<条目二十九:对于逐个字符的输入请考虑istreambuf_iterator> 1.使用: ifstream inputfile("xxxx"); string fil ...