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 Order By in Laravel

January 27, 2021

To order a query in descending or ascending order in Laravel use the orderBy() method followed by the get() method. The...


How to Print Numbers with Ordinal Suffix in PHP

January 24, 2021

Ordinal suffixes are words that represent the rank of a number. In this tutorial, we will learn how to add ordinal numer...


How to Create New Line in PHP

December 21, 2020

There are a couple of different ways we can approach creating new lines in PHP, which we will learn in this tutorial.&nb...


How to Count all Elements in an Array in PHP

December 21, 2020

Finding the count of all the elements in an array is a common programming task. PHP provides two built-in utilities for...


How to Get the Value of an Input Text Box in JavaScript or jQuery

December 18, 2020

Getting data from HTML input boxes is a common task in JavaScript. In this tutorial, we will learn how to get the value...


How to Change PHP Version

December 07, 2020