learn php

Study, learn and explore traits - pictured as a magnifying glass enlarging word traits, symbolizes analyzing, inspecting and researching the meaning of traits, 3d illustration

Traits in PHP

In this article, you will learn traits in PHP. PHP – What are Traits? In PHP, you can inherit from only one parent class. Traits overcome this limitation of PHP and allow you to inherit multiple behaviors. A trait is a class that contains both abstract and non-abstract methods. Different classes can use these methods …

Traits in PHP Read More »

Constants in PHP OOP

In this article, we will learn about PHP constants. Constants are used to hold variables that remain constant during a program’s execution. They may be declared by using the keyword ‘const’ followed by the constant name. It should be noted that constant names in PHP are case-sensitive, however uppercase characters are preferred. How to access …

Constants in PHP OOP Read More »

Regex in PHP

Regex in PHP

What is a Regular Expression? The regular expression is basically started from mathematics which defines a range of characters for some purpose. Different languages get references from this mathematical concept and applied it for searching patterns and validation of data. In this article, you will learn regex in PHP. There are many use cases of …

Regex in PHP Read More »

en English
X
Scroll to Top