@@ -31,9 +31,9 @@ if (strpos('testing', 'test') !== false) { // true, as strict comparison was
31
31
}
32
32
{% endhighlight %}
33
33
34
- * [Comparison operators](http ://php.net/language.operators.comparison)
35
- * [Comparison table](http ://php.net/types.comparisons)
36
- * [Comparison cheatsheet](http ://phpcheatsheets.com/index.php?page=compare)
34
+ * [Comparison operators](https ://www. php.net/language.operators.comparison)
35
+ * [Comparison table](https ://www. php.net/types.comparisons)
36
+ * [Comparison cheatsheet](https ://phpcheatsheets.com/index.php?page=compare)
37
37
38
38
## Conditional statements
39
39
@@ -73,7 +73,7 @@ function test($a)
73
73
74
74
{% endhighlight %}
75
75
76
- * [If statements](http ://php.net/control-structures.if)
76
+ * [If statements](https ://www. php.net/control-structures.if)
77
77
78
78
### Switch statements
79
79
@@ -106,7 +106,7 @@ function test($a)
106
106
}
107
107
{% endhighlight %}
108
108
109
- * [Switch statements](http ://php.net/control-structures.switch)
109
+ * [Switch statements](https ://www. php.net/control-structures.switch)
110
110
* [PHP switch](http://phpswitch.com/)
111
111
112
112
## Global namespace
@@ -131,8 +131,8 @@ function array()
131
131
}
132
132
{% endhighlight %}
133
133
134
- * [Global space](http ://php.net/language.namespaces.global)
135
- * [Global rules](http ://php.net/userlandnaming.rules)
134
+ * [Global space](https ://www. php.net/language.namespaces.global)
135
+ * [Global rules](https ://www. php.net/userlandnaming.rules)
136
136
137
137
## Strings
138
138
@@ -156,7 +156,7 @@ $a = 'Multi-line example' // concatenation operator (.)
156
156
. 'of what to do';
157
157
{% endhighlight %}
158
158
159
- * [String Operators](http ://php.net/language.operators.string)
159
+ * [String Operators](https ://www. php.net/language.operators.string)
160
160
161
161
### String types
162
162
@@ -184,7 +184,7 @@ echo 'This is my string, look at how pretty it is.'; // no need to parse a si
184
184
*/
185
185
{% endhighlight %}
186
186
187
- * [Single quote](http ://php.net/language.types.string#language.types.string.syntax.single)
187
+ * [Single quote](https ://www. php.net/language.types.string#language.types.string.syntax.single)
188
188
189
189
#### Double quotes
190
190
@@ -234,7 +234,7 @@ $juice = array('apple', 'orange', 'plum');
234
234
echo "I drank some juice made of {$juice[1]}s"; // $juice[1] will be parsed
235
235
{% endhighlight %}
236
236
237
- * [Double quotes](http ://php.net/language.types.string#language.types.string.syntax.double)
237
+ * [Double quotes](https ://www. php.net/language.types.string#language.types.string.syntax.double)
238
238
239
239
#### Nowdoc syntax
240
240
@@ -260,7 +260,7 @@ EOD; // closing 'EOD' must be on its own line, and to the
260
260
*/
261
261
{% endhighlight %}
262
262
263
- * [Nowdoc syntax](http ://php.net/language.types.string#language.types.string.syntax.nowdoc)
263
+ * [Nowdoc syntax](https ://www. php.net/language.types.string#language.types.string.syntax.nowdoc)
264
264
265
265
#### Heredoc syntax
266
266
@@ -288,7 +288,7 @@ EOD; // closing 'EOD' must be on its own line, and to the
288
288
*/
289
289
{% endhighlight %}
290
290
291
- * [Heredoc syntax](http ://php.net/language.types.string#language.types.string.syntax.heredoc)
291
+ * [Heredoc syntax](https ://www. php.net/language.types.string#language.types.string.syntax.heredoc)
292
292
293
293
> It should be noted that multiline strings can also be formed by continuing them across multilines in a statement. _e.g._
294
294
@@ -326,7 +326,7 @@ Regardless of what you are doing with strings, none of the types will ever have
326
326
application. Trying to rewrite code to use one or the other is always an exercise in futility, so avoid this
327
327
micro-optimization unless you really understand the meaning and impact of the differences.
328
328
329
- * [Disproving the Single Quotes Performance Myth](http ://nikic.github.io /2012/01/09/Disproving-the-Single-Quotes-Performance-Myth.html)
329
+ * [Disproving the Single Quotes Performance Myth](https ://www.npopov.com /2012/01/09/Disproving-the-Single-Quotes-Performance-Myth.html)
330
330
331
331
332
332
## Ternary operators
@@ -413,4 +413,4 @@ return ($a != 3 && $b != 4) || $c == 5;
413
413
Since PHP 5.3, it is possible to leave out the middle part of the ternary operator.
414
414
Expression "expr1 ?: expr3" returns expr1 if expr1 evaluates to TRUE, and expr3 otherwise.
415
415
416
- * [Ternary operators](http ://php.net/language.operators.comparison)
416
+ * [Ternary operators](https ://www. php.net/language.operators.comparison)
0 commit comments