String
A string is a word or a sentence, such as "Hello Word", which is extended in double quotation marks, and you can use the PHP language to enter this string, like this
1 Echo "Hello world!"; ?>
You can also use single quotes to expand, like this.
Echo ' Hello world! '; ?>
Connect the two strings with a connector, like this:
Echo ' My Talk: '. ' Hello world! '; ?>
Note: The connector can concatenate multiple strings, and the example above is to divide a string into two strings, and then connect them with a connector.
In PHP, the string connector is "." to indicate that this is more special, the other language is the plus "+" to express, such as: JavaScript, Java, C.
Instance:
1 <! DOCTYPE html> 2 3 4 <meta http-equiv= "Content-type" content= "Text/html; Charset=utf-8 "> 5 <title> string </title> 6 7 <body> 8 <p> 9 echo ' aaaa '. CCC ';? > </p> </body>
PHP Learning-1.5 strings