How to convert a date format in PHP
Today, we’ll discuss how to convert a date format in PHP. For example if we have date in YYYY-MM-DD format and need to convert it to DD-MM-YYYY format. Using built-in...
Today, we’ll discuss how to convert a date format in PHP. For example if we have date in YYYY-MM-DD format and need to convert it to DD-MM-YYYY format. Using built-in...
Today we’ll explain to you how to extract email addresses from a string in PHP. At some point, we need to extract an email address from a long text string...
Today we’ll explain to you how to drag and drop multiple file upload using jQuery, Ajax, and PHP. It is a common functionality widely used in web applications. You may...
Today we’ll explain to you how to create a dynamic dependent select box using jQuery, Ajax, and PHP. Typically, this functionality is used to automatically add dependent data to a...
In this short article, we’ll discuss how to find URLs in a string and make clickable links in PHP. Sometimes you have data without any hyperlinks tags and when displayed...
Today we’ll explain to you how to convert PHP array to JavaScript array. Sometimes, we need to pass a PHP array in JavaScript that can be a single or multidimensional...
Today we’ll explain to you how to calculate the age from date of birth in PHP. Sometimes we need to calculate the age of the user in web applications. So...
Today, we’ll explain to you how to validate password strength in PHP. It is very useful to check that the password is strong which protects the user accounts and prevents...
Today we’ll explain to you how to get a file extension in PHP. Getting a file extension is very useful for validating a file or file upload. Here, we’ll show...
Today we’ll explain to you how to save an image from a URL in PHP. Sometimes we need to download images from a remote server and use them in projects....
In this short article, we’ll explain to you how to convert XML to JSON in PHP. We can easily use the JSON format instead of XML. So we prefer to...
Today we are going to explain to you how to set or get a default timezone in PHP. If you are looking to change the default timezone for all date...
Today we’ll explain to you how to check if a file exists from a URL in PHP. Using php built-in file_exists() function, we can check whether a file or directory...
Today, we’ll explain to you how to remove duplicate values from an array in PHP. In this short article, we will look at different types of an array with examples....