admin

admin

How to Get User Location Using IP Address In PHP

In this tutorial we will show you how to get user’s complete location using users IP address in PHP with the help of GeoPlugin and freegeoip web service. Example 1 <?php $ip=’77.99.179.20′; $location = file_get_contents(”.$ip); print_r($location); ?> Output { “ip”:”77.99.179.20″,…

How to search in an array with preg_grep using php

The PHP function, preg_grep, is used to search an array for specific patterns and then return a new array based on that filtering follow below code with string to array and array to search specifc word(character). You may also like…

Download simple HTML email templates

With almost 50% of all emails being opened on a mobile device, and with that percentage expected to rise rapidly over the next few years, the importance of using a responsive template for your email marketing campaigns has never been…

Line breaks in a textarea using php

Form submit to post method after line break using nl2br() function. When displaying text, use nl2br() to convert newlines to tags. so now follow below example. You may also like Line break in a textarea and create array using php…