Quantcast
Channel: PHP – Web Development Tips
Browsing latest articles
Browse All 38 View Live

Image may be NSFW.
Clik here to view.

How can we get the properties (size, type, width, height) of an image using...

To know the Image type use exif_imagetype () function To know the Image size use getimagesize () function To know the image width use imagesx () function To know the image height use imagesy()...

View Article



Image may be NSFW.
Clik here to view.

Sorting a Multi-Dimensional Array with PHP

//an array of some songs I like $songs = array( '1' => array('artist'=>'The Smashing Pumpkins', 'songname'=>'Soma'), '2' => array('artist'=>'The Decemberists', 'songname'=>'The...

View Article

What is Service Repository pattern in Laravel

The Service Repository pattern is a design pattern commonly used in Laravel to separate business logic from database operations. It is a variation of the Repository pattern that adds a Service layer to...

View Article

What are the different types of architecture patterns in PHP Laravel

PHP Laravel is a popular web application framework that follows the Model-View-Controller (MVC) architectural pattern. However, there are several other architecture patterns that can be used in...

View Article

Difference between firstOrCreate() vs createOrFirst() in Laravel

The firstOrCreate() and createOrFirst() methods in Laravel are both used to create a new record in the database if it does not exist, or return the existing record if it does exist. However, there are...

View Article

Browsing latest articles
Browse All 38 View Live




Latest Images