How to fix cURL error 60: SSL certificate problem?
PHP

How to fix cURL error 60: SSL certificate problem?

Sometimes, we are facing an issue with the error “cURL error 60: SSL certificate problem (unable to get local issuer certificate)” during the curl calls to third-party services/websites. This error occurs because the curl verifies and makes a secure connection request using a self-signed certificate. When it does not find the valid certificate, it throws […]

No Comments Read More
PHP add days to current date
PHP

How to add days to the current date in PHP?

How to add days to the current date in PHP? PHP adding days to the current date is very easy and follows this article. I will guide you to add days to the current date using PHP.  PHP add days to current date samples: Add 1 day to the current date: Result Add 2 days […]

No Comments Read More
Get the last element of an array in PHP – end()
PHP

How to Get the last element of an array in PHP – end()

How to Get the last element of an array in PHP? The end() function is an inbuilt function in PHP Programming. The purpose of this function is to find the last element of the given input array. The end() function changes the internal pointer of an array to the last element and returns the value […]

No Comments Read More
PHP: How to copy all files from one directory to another
PHP

How to copy all files from one folder to another in PHP?

How to copy all files from one folder to another in PHP? I will guide you to copy all files & subdirectories of the directory to another directory using the PHP copy() function. There are many other functions used to copy the content of one directory to another. copy() Function opendir() Function is_dir() Function scandir( […]

No Comments Read More
How to validate the JSON data in PHP? json_last_error(), json_decode()
PHP

How to validate the JSON data in PHP? json_last_error(), json_decode()

How to validate the JSON data in PHP? JSON is one of the popular data formats to transfer data between client and server. As a programmer, you must validate the JSON data before processing it. You can easily validate the JSON data by using the functions json_decode() and json_last_error(). Note: json_last_error function doesn’t have any […]

No Comments Read More
How to Find the number of days between two dates in PHP
PHP

Find the number of days between two dates in PHP?

How do find the number of days between two dates in PHP? We can use the PHP DateTime::diff function to get the date different. new date/time functions have been added to get the difference from PHP version 5.3. Sample code to find the number of days between two dates: Output You can also get the various […]

No Comments Read More
PHP: Convert array to key value pair
PHP

PHP: Convert array to key value pair

Find the simple PHP code for convert array to key value pair format using http_build_query() PHP function for Generate URL-encoded query string Sample Code for convert array to key value pair: Output: Favorite

No Comments Read More
Advantages of PHP
PHP

Advantages of PHP

PHP was originally created by Danish-Canadian programmer Rasmus Lerdorf in 1994, it was written in C language primarily but some of the components were written in C++ language as well. PHP has a lot of advantages. PHP has a very helpful, active, and widespread PHP community. Also, this scripting language offers a lot of resources, […]

No Comments Read More

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.