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…
PHP backend web language
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…
Here is a quick and very easy way to select and display a random image each time the page is loaded. Store the image links in an array and with…
MySQL injection is the method in which “hackers” can get unauthorized data or inject it. Good news is that its easy to fix, bad news is that PHP code with…
MySQL and PHP, the perfect match right?! Well close enough, anyway displaying a table with data from a MySQL database is a common task for a web developer. It’s easily…
I came across PhpStorm Tips when browsing medium and I wanna speak about it with two parts. The first part is how handy it is for PHPstorm users to check…
Handling and formatting dates and times in PHP is quite common, that’s why PHP has a mass of inbuilt functions to use here is the list. In this post are…
I knocked together some PHP code using the YouTube API to simply fetch my YouTube subscribed to channels and list the hours/days/weeks/months since last upload. You can find the code…
If you want to get the minutes, hours, days, months between two dates in PHP this function is for you. Feel free to customize its return output to suit your…
Playing around with the Vultr api in PHP and I got stuck. I was getting the GET requests fine with curl but some of the calls have optional features. Such…