Double and single quotation marks
The double quotation marks in the statement will search for the contents of the quotation mark whether there is a variable, the output value, the original content is not output. Therefore, it is more efficient to use single quotation marks than double quotation marks when outputting pure strings, because the process of retrieving is omitted.
$a = 1; echo $a; 1 echo "$a";//1 echo ' $a ';//$a
Continue
jump out of the current code block
for (i=0;i<=10;i++) { if (i==3) continue; This example iterates over the value: 3 x=x + "The number is" + i + "<br>"; }
Grammar:
variablename = (condition)? value1:value2
Greeting= (visitor== "PRES")? " Dear president ":" Dear "; If the variable visitor value is "PRES", assign the value "Dear president" to the variable greeting, otherwise assign the value "Dear"
Background and Background-color
Background can set background color, background image, positioning, etc.
Background-color can only set background color
Background-color: #aaa; Only the background color is changed, at this time there is a default background:repeat;background: #aaa; Equivalent to setting the background:no-repeat at the same time;
{background-color: #aaa; background:no-repeat;} = = {background: #aaa}
Javascript,c#,css,html Essays