Browsing: Functions

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 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…