In contrast, single-quoted strings treat everything inside their delimiters as literal characters-except two consecutive single-quotes, which are treated as a literal single-quote.
相比之下,使用单引号分隔的字符串将包括在其中的所有内容视为文字字符—两个连续的单引号是一个例外,它们被单纯地当作单引号。
SolidDB strings are delimited by single quotes.
soliddb字符串使用单引号分隔。
The careful reader will realize that this may fail badly if the passed argument includes single quotes.
细心的读者会发现,如果传递的参数包含单引号,将会完全失败。
The translator obviously does not know what code will manipulate the translated text, so they must know how to enter required single quotes or apostrophes.
翻译人员显然不知道什么代码将操作翻译的文本,因此他们必须知道如何输入所需的单引号/撇号。
The third thing to notice is the use of single quotes to surround the 'd' command.
第三件要注意的事是括起'd'命令的单引号的用法。
If you just want to output a basic string, use single quotes! There is a marginal performance benefit, since the string does not get parsed.
如果你只想输出一个基本的字符串,就用单引号吧,这样会节省一些资源。
Strings are delimited by single quotes instead of double quotes to avoid the performance hit of PHP searching for variables to interpolate within the strings.
字符串用单引号限定,从而节省了PHP从字符串中搜索可替换的变量的时间。
Because using single quotes disables a bash feature called expansion, where special characters and sequences of characters are replaced with values.
因为使用单引号禁用了称为扩展的bash特性,其中,特殊字符和字符系列由值替换。
If you look closely at the statement above, you will see that all of the individual values are either literal strings (surrounded by single quotes) or variable names, all separated by commas.
如果仔细看看上面这个语句,会看出所有值都是直接字符串(由单引号包围)或变量名,它们都由逗号分隔。
Ruby does not process any data in a string if you wrap it in single quotes.
Ruby不处理任何用单引号括起来的字符串信息。
When you set a value for the MCAUSER attribute, enclose the value in single quotes to avoid issues with case sensitivity on distributed platforms.
当您设置mcauser属性的值时,应该将值包括在单引号中,以避免分布式平台上的区分大小写问题。
Syntactically, you use quotes (single or double) around the URI string, and a colon to set off the prefix; other characters present no interference.
根据句法,在uri字符串前后使用引号(单引号或双引号),并用冒号将前缀分隔开;对其它字符没有任何规定。
You can use single or double quotes as long as opening and closing tokens match, and there are other variations on quoting that are frequently useful.
可以使用单引号或双引号,只要左引号和右引号匹配,常用的还有其它引号的变化形式。
Here, the first string is defined with a pair of single quotes. The second one USES a pair of double quotes.
这里,第一个字符串使用一对单引号定义,第二个字符串使用一对双引号定义。
Replace the single quotes used for the expr attribute with double quotes, and then escape the double quote (") characters to ".
用双引号代替expr属性中所用的单引号,然后将双引号(“)字符转义成”。
All text strings in filter files should be in single, or double quotes. However, for convenience sake, quotes can be omitted under certain circumstances.
所有过滤文件中的文本字符串应该在单引号或者双引号内。可是,为了方便的缘故,引号在一定的情况下可以被忽略。
Alphabetic strings may be enclosed in apostrophes (single quotes) or quotation marks (double quotes).
字母字符串可以用撇号(单引号)或引号(双引号)括起来。
The value cannot be changed. Literal characters are enclosed in single quotes, literal strings in double quotes.
字面值字符用单引号括住,而字面值字符串则用双引号括住。
In such cases, you can render the single quote harmless by using a regular expression or the String.Replace method to replace each instance of the single quote with two single quotes. For example.
在这种情况下,可以通过使用正则表达式或者String . Replace方法将每个单引号实例替换为两个单引号,使单引号无害。
The single quotes are used because the double quotes are needed within the drawing command if more than one word is to be drawn, and you cannot have double quotes within double quotes.
使用单引号是因为如果需要绘制多个字,则绘图命令中需要使用双引号,而您不能在双引号中再用双引号。
However, all parameter values are enclosed in single quotes, which makes the contents within the quotes a literal string.
但所有参数值都使用单引号括入,这使单引号中的内容成为了字符串。
Single quotes are better, because then you can use double quotes inside the one - liner.
单引号更好,因为使用单引号后您可以在一行程序内使用双引号。
For instance, did you notice that there were no single quotes around the array indexes ($x[sales] and $x[profit])?
比如,你有没有发现在数组索引里没有用引号将字符串括起来?
Either single or double quotation marks can enclose strings, which permits quotes that contain quote marks or apostrophes.
单引号或双引号都可以包围字符串,这就允许引文中再包含引号或撇号。
You do so by using the run command, which takes a single argument: the name of the script file enclosed in single quotes.
通过使用run命令可实现该操作,该命令接受单个参数:单引号括起的脚本文件名。
You can also execute a sequence of commands by separating each command with a semicolon and then placing the entire sequence of commands into quotes so that it is identified as a single argument.
通过使用分号隔开每个命令,然后将整个命令序列用引号引起来(以便能够将其识别为单个参数),您还可以执行一系列的命令。
Note that we have used single quotes around the conditional values in the examples.
我们在上面那个举例中对条件值使用了单引号。
You should also notice that each value term is surrounded by single quotes, exemplified by this full-text query: word='hello'.
还应该注意,每个值由单引号包围,例如全文查询:word='hello'。
The description column is a variable-length character string, so it expects a string (which you indicate by enclosing the character data within single quotes).
description列是长度可变的字符串,所以它预计是一个字符串(通过将字符数据括在单引号中指明)。
To alleviate this problem, you need to escape dangerous characters from the user-submitted values, most particularly the single quotes (').
为了避免这样的问题,应该对用户提交的数据进行危险字符的过滤,最主要的就是单引号(’)的过滤。
应用推荐