Single quotes:What you can say is what you see is what you get: the contents of a single quotation mark are output as-is, or what you see in single quotes is what you output. The single quotation mark ' is a full reference, and the contents of the
Punctuation marks in programming languages are not something we can add to others and know what you want to say, but computers are different. Improper use may cause errors and cause a lot of trouble to you, the use of single and double quotes in PHP
1. Single quotes ('')
# Grep Susan phonebookSusan Goldberg 403-212-4921Susan Topple 212-234-2343If we want to search for Susan Goldberg, we cannot directly use the grep Susan Goldberg phonebook command. grep regards Goldberg and phonebook as files
Single quotation marks and double quotation marks are roughly the same, but it is very important that the variable is referenced. You can understand the following code by running the following code: The code is as follows:Copy code $ X = "China "
Single quotes: What you see is what you get: The contents of the single quotation mark are output as-is, or what you see in single quotes is what you output. Double quotes: Output The contents of the double quotation marks: If there are commands,
MySQL query with quotes and no quotes difference
When the database field ID is an integral type
Select ID from table where id=1
And
Select ID from table where id= ' 1 '
Two SQL is OK, but the first SQL does not have to be implicitly converted,
Oracle SQL single quotes double roles in ORACLE, single quotes have two roles, one is that the string is referenced by single quotes, the other is escape, dynamic composition of SQL at the beginning of learning is often puzzled. The use of single
Before writing a php application that is not affected by Magic Quotes: you must read chapter 10th magic quotes from Section IV security in the php Manual ". If you haven't read it, it's okay. now it takes 10 minutes to take a look at this in the php
PHP Summary
Summary of basic knowledge: a summary of single-quote double-quote curly braces in PHPIn PHP, strings can be represented by single quotes or double quotes, output, and so on.For example:
PHP code
Their output is the same. Will print
In PHP programming double quotes "and single quotes" are strings and character representations, so we're going to output what does it do, let's look at a simpleExample of output single double quotes.
Home we see several ways to output double
For large systems, Oracle,sqlserver is undoubtedly the best choice to look at the growing number of small web sites, they do not have their own servers, just to buy other people's space and database, but this small database on the performance of
For beginners who don't have much coding experience,
first think about all the words in PHP (actually called symbols) there are several categories.
1.php,mysql two-side keywords and functions. For example Echo,print,mysql_connect and so on. These
Http://blog.sina.com.cn/s/blog_4d12b0680100txle.html
When I published an article today, I found that my website failed to publish the article. Later I ruled out it one by one because I didn't translate the single quotes and it was wrong when
Causes SQL Server to follow the ISO rules for quotation-delimited identifiers and literal strings. Identifiers delimited by double quotation marks can be Transact-SQL reserved keywords, or they can contain characters that are normally disallowed by
': Single quotes
": Double quotes
1. When using single quotes to output text, the contents of quotes are all treated as text,
eg
$face = "Interview technology";
Echo ' $face /ncsdn blog";
?>
The code to print to the page will be complete:
$face /
In js, single quotes and double quotation marks are the same. We try to use single quotes whenever we use them. Only when we encounter nesting will we use two quotation marks at the same time, interested friends can understand the executable Syntax:
A simple answer is obviously pale and powerless. Let's make an experiment today to see what is the difference between single quotes and double quotes, who is fast and who is slow.The test code is as follows:Copy codeThe Code is as follows:$
Just testing found a simple, seemingly correct code that was wrong: "{' name ': ' Eric ', ' age ': +}"As you know, the PHP version has added two JSON-capable functions since 5.2.0, namely Json_encode and Json_decode, where the Json_decode function
1. Define a stringIn PHP, the definition of a string can be either single quotation marks or top quotation marks. However, the same single or double quotation marks must be used to define strings. For example, 'hello' and 'hello' are invalid strings.
PHP learns scattered notes-string splits, fetch functions, and single double quotes. , Fetch double Quotes
1 string splitting--split () function and Preg_split () function
Split-using regular expressions to split strings into arrays--seemingly PHP5.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.