Browsing: PHP

PHP Extract numbers from a string using php
By 0
Extract numbers from a string using php

This is simple way to extract all number of a string and output to array. For example, you could extract number from a string like this: “There is 3 dogs in the box”. So output you will get number “3”…

PHP
By 0
Functions to convert CIDR to IP range

This is very short and simple functions to convert CIDR to IP ranges. This functions only apply to IP v4.

How to use it: To convert CDIR to IP range, just use above functions to convert it. Below is…

PHP Output 'Site Name' in Joomla 3.x with PHP?
By 0
Output ‘Site Name’ in Joomla 3.x with PHP?

In Joomla Administrator, you can defined the site name in the Joomla administrative interface: SYSTEM > GLOBAL CONFIGURATION > SITE > SITE NAME. It’s a global setting so, in anywhere, like plugin, components, modules, you can easy call that site…

PHP
By 0
Send multiple email using PHPMailer class

Using this code to send individual email to multiple recipients. This code using PHPMailer class so first, you have to install and check if PHPMailer class working fine.  Then you can easy config your code as below to send email…

PHP PHP Generate Random Float Number
By 0
PHP Generate Random Float Number

This function help you generate a random float number like: 5.99, 10.22, 6.55 … You can easy set min and max for random float number. This is function generate a random float number between 2 min and max number you…

PHP
By 0
How to disable all Update Notifications WordPress

There are 2 ways to disable all update notifications in wordpress. The first way is use Disable All WordPress Updates plugin.  You just install it and active, then you have 3 choices: Disable WordPress Theme Update Disable WordPress Plugin Update…