Extract Total Number of Image And Missing Alt Attribute using php

Here i will show you how can you extract total number of images from HTML content and find out missing alt attribute of the image using very simple code using php. <?php $html = ‘ <html lang="en-US"> <head> <meta charset="UTF-8"> <title>Extract Total Number of Image And Missing Alt Attributte</title> </head> <body> <img src="test.png"> <img src="test.jpg" […]

How to extract Heading tags using PHP from string

Here i am showing how can we extract headings(h1,h2,h3,h4,h5,h6) from HTML string using very simple php code. If you want you can use regular expressions preg_match_all(‘/<h[0-6]>([^</h[0-6]>*)</h/i’, $string, $matches); PHP code for extract headings(h1,h2,h3,h4,h5,h6) from html string <?php $html='<html> <head> <title>Extract Headings From HTML String</title> </head> <body> <h1>This is headeing h1</h1> <h2>This is headeing h2</h2> <h3>This […]

How to remove whitespace from string using php

Here we are going to show you how to remove and replace single white space from a string using a predefined function preg_replace(). $string = “This is simple string with multiple white space”; echo preg_replace(‘/\s+/’, ‘-‘, $string); Here i showing you how to remove more then one or multiple white-space and replace each with only […]

Remove All Special Characters From String PHP

I think you have understood everything in the title of this post that what we are talking about today. Today we will tell you how we remove all the special characters from any string. I know some time we facing an issue with URLs, Strings, Titles. for example If you working on form where user […]

Redirecting HTTP to HTTPS with PHP

Today i am showing you how to redirect http to https or force users to redirect with HTTPS instead of HTTP using php with non www url to www url. Over the past few years, HTTPS has risen in popularity – especially since Google announced that HTTPS was being used as a ranking signal for […]

Convert Base64 string to an image file

In this tutorial i will show you how to convert Base64 string to an image file file and save into a folder. Where we need base64 sting to image conversion When you are handling API for apps ( android, iPhone etc ), you can see that they provides the image in Base64 encoded format mostly, […]

Fullscreen Background Video Using HTML5 And CSS

You know very well play background video is a modern way to show your website in front of your users and clients when user visit and view your website a video is playing in the background of your website without disturbing its content and that makes your website very beautiful, attractive and different. So, in […]

How to get form filed names with values php

Here we will show you tow to access or retrieve HTML form data with field name and value using PHP. HTML form data can access using GET method and POST method in PHP. It’s very simple process for get HTMl form field vame with their values. Where we can use This code we can use […]

how to get current week start date and end date in php

I you looking for how to get the starting date and ending date of a week, chosen by year and week number than this is for you, here i am showing simple example of how we can get starting and end date of week using php. Here we are create a function “getStartAndEndDate” for find […]

PHPKIDA Offering Free Tools:

INSTA DOWNLOADER

Download Instagram Videos & Photos.

Download Now

CURRENCY CONVERTER

Real Time Currency Converter

Convert Now

ROBOST.TXT GEN.

Robots.txt File Creater

Create Now

HTML MINIFIER

Compress yout HTML Code

Minify Now

CSS MINIFIER

Compress yout CSS Code

Minify Now

JAVASCRIPT MINIFIER

Compress yout JavaScript Code

Minify Now

Sign up for weekly update

Milkshake is almost ready. If you're interested in testing it out, then sign up below to get exclusive access.