Skip to content
CodeHasBug
  • Home
  • Tutorial
    • HTML
    • CSS
    • Javascript
    • jquery
    • PHP
    • MySql
    • wordpress
  • Technology
    • Windows
    • Android
  • Social Media
    • WhatsApp
    • Facebook
    • Instagram

PHP

How to set the authorization header to a cURL request in PHP?

How to set the authorization header to a cURL request in PHP?

September 6, 2022 by Ashis Biswas

This article provides a brief tutorial on how to set the authorization header to a cURL request in PHP. The article covers the basics of …

Read more

How to add custom headers to a cURL HTTP request in PHP?

How to add custom headers to a cURL HTTP request in PHP?

September 6, 2022September 5, 2022 by Ashis Biswas

This article will show you how to add custom headers to a cURL HTTP request in PHP. cURL is a popular tool for making HTTP …

Read more

How to get POST array value in PHP

How to get POST array value in PHP

September 5, 2022September 5, 2022 by Ashis Biswas

This article will introduce the basic usage of PHP’s post array to get a value from an input form. The article will also highlight some …

Read more

detect HTTP request type in PHP

How to detect HTTP request type in PHP

September 3, 2022 by Ashis Biswas

In this article, I will discuss how to detect HTTP request types in PHP. But keep in mind that through this process we can only …

Read more

How to display images from a folder in PHP

How to display images from a directory in PHP

September 3, 2022September 3, 2022 by Ashis Biswas

In this tutorial, we will go through the basics of how to display images from a folder in PHP. This will be done by going …

Read more

Remove an Element From an Array by Value in PHP

Remove an Element From an Array by Value in PHP

September 5, 2022September 1, 2022 by Ashis Biswas

There are different methods in PHP to remove an element from an array by value. The most simple method is the combination of array_search() and unset() functions. So let’s …

Read more

Delete an Element From an Array

Delete an Element From an Array in PHP

September 1, 2022September 1, 2022 by Ashis Biswas

In this tutorial, we are going to check how to delete elements from an array in PHP. We can use unset() function to delete a …

Read more

Check string contains a specific word in PHP

Check if a string contains a specific word in PHP?

June 7, 2022June 7, 2022 by Ashis Biswas

In this tutorial you will find various techniques that check for substrings, character strings or special characters that exist in other strings. To determine whether …

Read more

How to get the previous page URL in PHP?

How to get the previous page URL in PHP?

September 5, 2022April 17, 2022 by Ashis Biswas

There are many times when you need to know the previous page URL after a redirect. Maybe you’re wondering where your traffic is coming from, …

Read more

PHP replace spaces in a string with dashes

PHP replace spaces in a string with dashes.

April 17, 2022April 17, 2022 by Ashis Biswas

In order to replace the spaces in a string with dashes, we can use preg_replace or str_replace(). So check the example first. Replace space with …

Read more

How to convert timestamp to time ago in PHP

How to convert timestamp to time ago in PHP

April 17, 2022April 17, 2022 by Ashis Biswas

We have seen on social media platforms that if someone posts something, the time is given below that post, such as 5 minutes ago or …

Read more

Methods with the same name as their class will not be constructor

Methods with the same name as their class will not be constructors in a future version of PHP

April 14, 2022April 14, 2022 by Ashis Biswas

Lots of users are facing this issue whenever they upgrade their PHP7. Because PHP7 does not allow the same class name as the constructor and …

Read more

Older posts
Page1 Page2 Page3 Next →
  • About Us
  • Contact Us
  • Disclaimer
  • Privacy Policy
  • DMCA policy
© 2019 - 2023 CodeHasBug. All rights reserved. | Sitemap | DMCA.com Protection Status | Ad Partner Ezoic