1
0
mirror of https://github.com/restoreddev/phpapprentice.git synced 2025-08-04 22:07:58 +02:00

More proofreading

This commit is contained in:
Andrew Davis
2018-12-26 19:10:58 -06:00
parent dc296aef34
commit 8970e4a0ce
3 changed files with 9 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ switch ($drink) {
$language = 'english';
echo $language == 'spanish' ? "hola\n" : "hello\n";
// Lastly, there is another form of a ternary that checks if a value is set and then returns the value to the right of two question marks if value is null.
// Lastly, there is another form of a ternary that checks if a value is set and then returns the value to the right of the two question marks if the value is null.
echo $IDoNotExist ?? "Variable not set\n";
// You can also chain multiple checks in a row.