Skip to content

Tag Archives: PHP-Questions

In this article, we will learn how to get time difference in minutes using PHP.  We will be using the built-in function date_diff() to get… Read More
Given a string email address, extract the username. Input: ‘’ Output: priyank Input: ‘’ Output: princepriyank Approach 1: Using PHP strstr() to extract the username… Read More
A string is a storage object in PHP comprising characters, numbers or special symbols. Strings in PHP are case-sensitive. The interconversion between lower and upper… Read More
PHP stands for hypertext preprocessor. MySQL is a database query language used to manage databases. In this article, we are going to discuss how to… Read More
To convert the first character of all the words present in a string to uppercase, we just need to use one PHP function i.e. ucwords().… Read More
A table is an arrangement of data in rows and columns, or possibly in a more complex structure. Tables are widely used in communication, research,… Read More
In this article, we are going to parse the JSON file by displaying JSON data using PHP. PHP is a server-side scripting language used to… Read More
In this article, we will learn how to format phone numbers using PHP. When we need to store a phone number then we store the… Read More
Multi-Line Strings can be written in PHP using the following ways. Using escape sequences: We can use the \n escape sequences to declare multiple lines… Read More
There are multiple ways to delete an element from an array in PHP. This article discusses some of the most common methods used in PHP… Read More
New Line helps the page to look better and presentable. We will learn to insert a new line in PHP using 2 ways. Using Line… Read More
In this article, we will extract numbers from strings using PHP. There are various built-in methods to extract numbers from strings, some of them are… Read More
In this article, we learn to parse a CSV file using PHP code. Approach: Step 1. Add data to an excel file. The following example… Read More
A string is a combination of words combined together. The first character of the string can be converted to an upper case in case it… Read More
In this article, we will see how to generate a random password using the given string. We have given a string and the task is… Read More

Start Your Coding Journey Now!