How to get the first 100 characters of a string/sentence without breaking HTML tags at the end ?Answer :<?php $DemoString="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec non ar
PHP POST Method Understand the use of PHP POST Method in 2 ways..In 2 pages (Request & Response page)In single page In 2 pages (Request & Response page) Request.php<html>&
Very important PHP function to prevent SQL injection attack . When you will pass any content to function CovertToHTMLentities($Content) , it will return result with HTML Character Entity in place of s
Example of AJAX GET() MethodsIn this example we use 2 php page , FirstPage_GET.php for request and ajax_second_page_GET.php for response..FirstPage_GET.php<html><head> <
Simple & best way of mobile number validation with following pattern .. <input type="text" value="" name="mobile1" id="mobile1" placeholder="Phone Number....." pattern="[6-9]{1
Generate alpha-numeric random number:<?php$rand = substr(str_shuffle("ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrst-1234567890"), -26)?>It will generate a 26 character alpha-numeric random num