mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-12 08:43:58 +02:00
Fix incorrect case of a few words
This commit is contained in:
@@ -11,7 +11,7 @@ primarily of commonly needed datastructure classes (stack, queue, heap, and so o
|
|||||||
over these datastructures or your own classes which implement SPL interfaces.
|
over these datastructures or your own classes which implement SPL interfaces.
|
||||||
|
|
||||||
* [Read about the SPL][spl]
|
* [Read about the SPL][spl]
|
||||||
* [SPL video course on Lynda.com(Paid)][spllynda]
|
* [SPL video course on Lynda.com (paid)][spllynda]
|
||||||
|
|
||||||
|
|
||||||
[spl]: https://secure.php.net/book.spl
|
[spl]: https://secure.php.net/book.spl
|
||||||
|
@@ -21,7 +21,7 @@ for modern, secure, and fast cryptography.
|
|||||||
|
|
||||||
* [Build APIs You Won't Hate](https://apisyouwonthate.com/) - Everyone and their dog wants an API,
|
* [Build APIs You Won't Hate](https://apisyouwonthate.com/) - Everyone and their dog wants an API,
|
||||||
so you should probably learn how to build them.
|
so you should probably learn how to build them.
|
||||||
* [Modern PHP](http://shop.oreilly.com/product/0636920033868.do) - covers modern PHP features, best practices, testing, tuning, deployment and setting up a dev environment.
|
* [Modern PHP](http://shop.oreilly.com/product/0636920033868.do) - Covers modern PHP features, best practices, testing, tuning, deployment and setting up a dev environment.
|
||||||
* [Building Secure PHP Apps](https://leanpub.com/buildingsecurephpapps) - Learn the security basics that a senior
|
* [Building Secure PHP Apps](https://leanpub.com/buildingsecurephpapps) - Learn the security basics that a senior
|
||||||
developer usually acquires over years of experience, all condensed down into one quick and easy handbook
|
developer usually acquires over years of experience, all condensed down into one quick and easy handbook
|
||||||
* [Modernizing Legacy Applications In PHP](https://leanpub.com/mlaphp) - Get your code under control in a series of
|
* [Modernizing Legacy Applications In PHP](https://leanpub.com/mlaphp) - Get your code under control in a series of
|
||||||
|
@@ -80,7 +80,7 @@ function test($a)
|
|||||||
Switch statements are a great way to avoid typing endless if's and elseif's, but there are a few things to be aware of:
|
Switch statements are a great way to avoid typing endless if's and elseif's, but there are a few things to be aware of:
|
||||||
|
|
||||||
- Switch statements only compare values, and not the type (equivalent to '==')
|
- Switch statements only compare values, and not the type (equivalent to '==')
|
||||||
- They Iterate case by case until a match is found. If no match is found, then the default is used (if defined)
|
- They iterate case by case until a match is found. If no match is found, then the default is used (if defined)
|
||||||
- Without a 'break', they will continue to implement each case until reaching a break/return
|
- Without a 'break', they will continue to implement each case until reaching a break/return
|
||||||
- Within a function, using 'return' alleviates the need for 'break' as it ends the function
|
- Within a function, using 'return' alleviates the need for 'break' as it ends the function
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user