Skip to content

Tag Archives: PHP-Questions

We can easily create a folder in PHP, but before that, you have to check if the folder or directory already exists or not. So… Read More
The task is to convert DateTime to String using PHP. There are two ways to convert it.   1. By using Format method  In the… Read More
To check whether any file is existing or not then we can use the below-mentioned PHP function. To find the existence of the files, we… Read More
In this article, we are going to discuss how to prevent SQL injection in PHP. The prerequisite of this topic is that you are having… Read More
In this article, we are going to see how to use cURL to Get JSON data and Decode JSON data in PHP. cURL:  It stands… Read More
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: ‘priyank@geeks.com’ Output: priyank Input: ‘princepriyank@gfg.com’ 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

Start Your Coding Journey Now!