php

  • How to Validate Password Strength using PHP

    In this tutorial we will discuss how to Validate Password Strength using PHP When the user enters their account password, it is advisable to validate the input field. Password strength validation is very helpful to check that the password is strong. The strong password makes the user account safe and helps to avoid account hacking....
  • How to Extract data Between HTML Tags in PHP

    The preg_match() function is the easy choice to extract data between HTML tags in php with REGEX using PHP. If you want to get data between tags, use regular expressions with preg_match() function using PHP. You can also extract the data within element based on class/ID in PHP. The sample code explain how to get...
  • How to send SMS with PHP?

    This article is going to be attractive to you. In this tutorial, We are going to explain you how to send SMS in PHP with Twilio SMS API. I expect, you are also enthusiastic to see how to send SMS with PHP? From back-end using the PHP language. Formerly you are going to do this...
  • 10 very useful PHP code snippets for PHP developers

    In this tutorial we are going to discuss 10 very useful PHP code snippets for PHP developers Next are a list of 10 most valuable PHP code snippets that a PHP developer will require at any point in his rush. A small number of the snippets are divided from my projects and few have brought...
  • How to Sum and GROUP BY Values of an Array in PHP

    In this tutorial we are going to Sum and GROUP BY Values of an Array in PHP Normally, the SUM() function and GROUP BY clause are used in the database to sort the records. The GROUP BY statement group records by the similar values and returns filtered records. The SUM () function is a combined...
  • How to Generate Unique and Secure API keys with PHP

    The string used for an API key or token should be singular and safe. PHP random_bytes() function generates pseudo-random bytes that are cryptographically safe. Apply random_bytes() and bin2hex() function to create unique and strong API keys in PHP. The following PHP code snippet supports you to create a random and safe string with PHP which...
  • How to Get Time Difference Between Two DateTimes in Minutes using PHP

    There are different ways to get the time difference in minutes with PHP. We are going to discuss here two types. 1. In, First method we can Use the PHP DateTime class for calculate the difference between given two date-times. The method of DateTime class creates a Date Interval object that will calculates the difference between...
  • How to Submit Form using jquery ajax with php & mysql

    Mostly, the HTML form is submitted to the script URL specified in the from action attribute of the tag. You can submit form using jquery ajax. The jQuery submit() method is more useful to handle the html form submission request. In this example code snippet, we will show you how to submit form using jquery...