The correspondence between these functions and zlib_decode is as follows: gzcompress ~ zlib_encode($str, ZLIB_ENCODING_DEFLATE) gzencode ~ zlib_encode($str, ZLIB_ENCODING_GZIP) gzdeflate ~ zlib_encode($str,…
Category: PHP
How to compress and decompress text an encode/decode using base64 functions: 1. Compress and Encode to Base64 function Compress2Base64($str, $gztype=’deflate’) {…
I worked for a while until I found the answer to the most used PHP functions in the most popular CMS, but…
I will present three relatively simple solutions, it is up to everyone to choose the solution they like best. 1’st php…
If you want to modify the size of an array, larger or smaller than its current size, use array_pad() and array_splice() function. How to make an…
Next you have two functions in PHP to get all word combination from phrase, but the algorithm can be translated into…
You can only use fopen() and file_get_contents() when fopen wrappers is enabled. This parameter is specified in the php.ini file and…
In number theory, integer factorization is the breaking down of a composite number into smaller divisors, which when multiplied together equal…
Below is an example code and a functions in php to check if youtube video is still valid: <?php /** *…