Merge pull request #3282 from apooravc/add-php-resource

[php/en] Added a resource (tutorial)
This commit is contained in:
Divay Prakash 2018-10-11 23:02:34 +05:30 committed by GitHub
commit 7f782df337
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -794,7 +794,7 @@ But I'm ChildClass
/********************** /**********************
* Magic constants * Magic constants
* *
*/ */
// Get current class name. Must be used inside a class declaration. // Get current class name. Must be used inside a class declaration.
@ -826,7 +826,7 @@ echo "Current trait is " . __TRAIT__;
/********************** /**********************
* Error Handling * Error Handling
* *
*/ */
// Simple error handling can be done with try catch block // Simple error handling can be done with try catch block
@ -871,6 +871,9 @@ and community input.
If you're interested in up-to-date best practices, visit If you're interested in up-to-date best practices, visit
[PHP The Right Way](http://www.phptherightway.com/). [PHP The Right Way](http://www.phptherightway.com/).
A tutorial covering basics of language, setting up coding environment and making
few practical projects at [Codecourse - PHP Basics](https://www.youtube.com/playlist?list=PLfdtiltiRHWHjTPiFDRdTOPtSyYfz3iLW).
If you're coming from a language with good package management, check out If you're coming from a language with good package management, check out
[Composer](http://getcomposer.org/). [Composer](http://getcomposer.org/).