The PHP foreach loop with examples
The PHP foreach loop is the best and easiest way to iterate through an array. Here are some examples of the foreach loop. Basic PHP foreach with echo: $array =…
The PHP foreach loop is the best and easiest way to iterate through an array. Here are some examples of the foreach loop. Basic PHP foreach with echo: $array =…
If you wondered how to do a new or random background image each time a web page is loaded here is how. Put the PHP script at the top of…
If you have a date time stamp and want to check it against another date time to check if its older than a certain amount of days here is how…
Have you ever wanted to quickly get a YouTube channels id quickly and simply? To do this in PHP firstly you will need PHP simple HTML DOM parser download simple_html_dom.php from…
Here is how to do a MYSQL backup and compress using 7zip though a batch file or .bat file this makes the process easy to run with windows scheduler to…
An under used Steam api feature is getting server information such as players, map, name, location and version. Here is how to do it using DayZ mod as an example….
Nested PHP if and if else statements can be confusing however if following the correct formatting and PHP basics they can be a very useful piece of code. In the…
A Unix timestamp looks like 1514452438 if you wanted to output how long ago this was such as 4 days, 18 hours, 44 minutes and 15 seconds in PHP here…
To change a webpage or html background based on what a PHP variable is, follow this guide: For practical purposes if a profile is online the PHP variable = 1…
To do the jquery javascript animated number count up feature on your website you need jquery on your page: <script src=”https://write.corbpie.com/wp-content/litespeed/localres/aHR0cHM6Ly9jb2RlLmpxdWVyeS5jb20vjquery-3.2.1.min.js”></script> Include the following javascript in a .js file: $(‘.counter’).each(function…