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

PHP

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?

April 17, 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

Warning: count(): parameter must be an array or an object that implements Countable

April 12, 2022April 12, 2022 by Ashis Biswas

This is a very common error when we pass the non-array to count() function. You will get the exact same error message as below- Suppose …

Read more

Post navigation
Older posts
Page1 Page2 … Page4 Next →

Enjoying the articles? I would appreciate a coffee to help me keep writing and coding!

Trending Now

  • PHP replace space with dash
  • jQuery disable button
  • CSS make text unselectable
  • Prevent copying website content
  • PHP post array data
  • PHP foreach break

Recent Posts

  • How to create Back To Top Button in jQuery
  • Why JavaScript error “is not a function” occurs
  • What is the best way to validate an email address in JavaScript?
  • How to create API Key Generator
  • Check if a string contains a specific word in PHP?

Recent Comments

  • Ashis Biswas on Generate a photo gallery from an image directory in PHP.
  • Ashis Biswas on Create 3 Types of Horizontal and Vertical News Ticker Only With HTML & CSS
  • Murat on “It is either an unsupported media type ” | Camtasia Error
  • ڈاکٹر ابرار ماجد on Create 3 Types of Horizontal and Vertical News Ticker Only With HTML & CSS
  • Hans on Generate a photo gallery from an image directory in PHP.

Categories

  • Android
  • Android Apps
  • CSS
  • Featured
  • HTML
  • Instagram
  • Javascript
  • jquery
  • PHP
  • Technology
  • Tutorial
  • Web Design
  • WhatsApp
  • Windows
  • wordpress

  • About Us
  • Contact Us
  • Disclaimer
  • Privacy Policy
  • DMCA policy
© 2019 - 2022 CodeHasBug. All rights reserved. | Sitemap | DMCA.com Protection Status | Ad Partner Ezoic
  • Home
  • Tutorial
    • HTML
    • CSS
    • Javascript
    • jquery
    • PHP
    • MySql
    • wordpress
  • Technology
    • Windows
    • Android
  • Social Media
    • WhatsApp
    • Facebook
    • Instagram