PHP Tutorials

PHP is a server-side programming language, which was originally designed for web development but has morphed into a more generalised language over the years.


On SkillSugar we have a collection of curated PHP tutorials to help you learn new skills.



How to Get Type of Variable in PHP

January 28, 2022

Type checking will tell us what type of "thing" a variable is. In PHP we can get the variable data type using the built-...


How to Show PHP Packages

October 07, 2021

How to Enable PHP In Apache

August 13, 2021

In this tutorial, you'll learn how to enable PHP on your Apache web server. Check Your PHP VersionFrom the command...


How to use Foreach Loop in Laravel Blade View (Laravel 5, 6, 7 and 8 Example)

June 17, 2021

A foreach statement allows us to loop through an array of data and do something with each element inside it. In the Lara...


Generate 4 Digit Unique Random Numbers in PHP

June 16, 2021

In this tutorial, we will learn how to generate pseudo-random numbers in a particular range in PHP. It is important...


How to Display Alert Message Box in PHP

June 16, 2021

In this tutorial, we will learn two different ways of displaying an alert message box in the users' browser window using...


Get MIME Type with PHP

March 27, 2021