<?php$a = ' This was a simple string ';//Use single quotation marks to denote the string echo $a; $b = ' what\ ' this? '; /Display single quotation mark in string $c = ' name: '. ' Simon. '; You can use "." Between multiple strings Connect Echo ' This was a simple string $a '; The single quotation mark contains the variable, and the echo "<br>" is output as is, and echo ' is \ t \ n simple string \ \; Self-validating output results?>
<?php$a = "This was a simple string";//use double quotation marks to denote the string echo $a; echo "<br>"; $b = "What's this?"; /Display single quotation mark in string $c = "Name:". " Mick. ";//". "Can be used between multiple strings." Connect echo "This was a simple string $a"; Enclose the variable in double quotation marks and replace echo "<br>" with the variable value; echo "This is a simple string ${a}s"; Use curly brace echo "<br>"; echo "is \ t \ n simple string \ \"; Self-validating output results?>
Core code differentiation of BOTC software development Model--php Example 005