From 3fd728a71a7a83781124445dbdda2b4c4eb46f4a Mon Sep 17 00:00:00 2001
From: Andrew Davis
- PHP Apprentice is currently a work in progress. If you would like to contribute or request a certain discussion topic, checkout the GitHub repository. + PHP Apprentice is currently a work in progress. If you would like to contribute or request a certain discussion topic, check out the GitHub repository.
To get started, you will need to install PHP, have a text editor and open your terminal. diff --git a/code/arrays.php b/code/arrays.php index c80b82f..0891bc1 100644 --- a/code/arrays.php +++ b/code/arrays.php @@ -1,6 +1,8 @@ color = $color; } diff --git a/code/exceptions.php b/code/exceptions.php index 6548bfe..d813866 100644 --- a/code/exceptions.php +++ b/code/exceptions.php @@ -20,7 +20,7 @@ $processor = new Processor(); $processor->charge('1234'); // A developer who wants to prevent an exception from stopping code execution -// can catch the exception and use it for logging or a return an error to a user. +// can catch the exception and use it for logging or display the error to a user. // Just wrap the code that might throw an exception with the keyword "try" and brackets // followed by "catch", the exception type in parentheses and more brackets.