PHP if matching conditions statements

Here are some examples to filter through strings in PHP to meet conditions. PHP functions used during this tutorial are: substr, is_numeric, preg_replace, str_replace and trim. Assume possible strings could…

Bunny CDN storage API with PHP

Like all great services Bunny CDN has an API. Making use theoretically easier.  The storage API allows you to upload files, delete files and list files/directories. I’m interested in the…

Sorting array’s in PHP

How to sort arrays and associative arrays in ascending and descending sort. To sort an array ascending use sort: $array = array(“Car”, “Animal”, “Book”); sort($array);//(“Animal”, “Book”, “Car”) Or with values…