Category: PHP

How to convert a date format in PHP - Clue Mediator

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

How to validate password strength in PHP - Clue Mediator

How to validate password strength in PHP

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

How to get a file extension in PHP - Clue Mediator

How to get a file extension in PHP

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

How to save an image from a URL in PHP - Clue Mediator

How to save an image from a URL in PHP

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

Convert XML to JSON in PHP - Clue Mediator

Convert XML to JSON in PHP

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