This function takes an IP address and CIDR netmask (e.g. 102.68.1.0/25), and calculate IP address range in that netblock. Example: result: array(2) { [0]=> string(10)…
Some functions to convert Numeric Character Reference (NCR) to UTF8: Method 01 Ex: Result: La Fenêtre de Soleil Alternative methods: Method 02 Update 08/23/2018: if…
Read first: PHP: Crop image function We can save to new file: Online demo We get the result: http://www.demo.tutorialspots.com/crop/logo.png Now, we can crop image on…
According to the document of PHP official website, http://php.net/sys_getloadavg sys_getloadavg (PHP 5 >= 5.1.3) sys_getloadavg — Gets system load average So, it’s only for PHP…
According to the document of PHP official website, http://php.net/str_ireplace str_ireplace (PHP 5) str_ireplace — Case-insensitive version of str_replace(). So, it’s only for PHP5+. In PHP4,…
According to the document of PHP official website, http://php.net/stripos stripos (PHP 5) stripos — Find the position of the first occurrence of a case-insensitive substring…