PHP Snippets

How to Access stdClass Property that has Spaces in PHP
Learn how to access the stdClass/class property with spaces in PHP. Learn this trick and be able to access any json decoded value.
18 Sep 2021

How to Install a Specific Version of Package Using Composer?
Learn how to specify package version when installing Composer dependency for PHP projects.
27 Sep 2021

How to Easily Get Image Width and Height in PHP
Learn how to get the image width and height in PHP the easy way. Make use of the built in getimagesize to get the image width, height, mime and etc
01 Oct 2021

How to Trim with PHP
Learn how to trim with PHP the easy way using the trim function and also specifying the special character
19 Nov 2021

Commands To Install LAMP Stack on Ubtuntu 16.04 (Short Guides)
Get to know and learn all the commands to install LAMP stack Linux, Apache, MySQL, PHP on Ubuntu 16.04
20 Nov 2021