Calculate Aspect Ratio of Image or Video in PHP

Calculate Aspect Ratio of Image in PHP

Sometimes during in PHP web application development, we come across a need where we require to calculate the aspect ratio of the image based on its width and height. Below PHP function will return aspect ratio for eg. width is 1920 and height is 1080…

Htaccess to Add or Remove slash from end of URL - PHP, WordPress

Htaccess to Add or Remove slash from end of URL

Many times in WordPress or other PHP websites we can across a situation in which Google considers a particular post with ending slash (/) after URL and without slash as two different URL and thus it shows Pages with duplicate title tags in Google Webmaster…

CONVERT LATIN CHARACTERS TO PLAIN TEXT IN PHP