PHP Tutorials

Latest

 thumbnail

PHP: Create a New Text File & Write Content to it

March 17, 2021

In this tutorial, we will learn how to create a text file in PHP and write some content to it. Create a FileThe fir...

 thumbnail

How to Order By in Laravel

January 27, 2021
 thumbnail

How to Find if a String Contains a Word in PHP

January 25, 2021

The strpos() function finds the first occurrence of a string inside another string in PHP. It is a case-sensitive functi...

 thumbnail

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...

 thumbnail

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...

 thumbnail

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...

 thumbnail

How to Change PHP Version

December 07, 2020