19th Jun 2025 • David Carr PHP Strict Types vs Weak Types: When and How to Use declare(strict_types=1) By enabling strict types, you can catch type-related bugs early and make your code more self-documen... Read more
3rd May 2024 • David Carr PHP use an enum for Filters I have a class that allows filtering based on an option, I need a way to accept options and also rej... Read more
1st Jan 2023 • David Carr PHP Generate a UL menu from an array Take an array and build a menu UL list from it. The array should support top-level as well as child... Read more
15th Nov 2022 • David Carr Use PHP to generate table of contents from heading tags I wanted to create a table of contents from the post's heading tags automatically without having... Read more
12th Sep 2021 • David Carr Laravel Livewire update dependent select menu's on change Since Livewire is reactive, it's easy to hide or show select menu's based on whether another... Read more
11th Sep 2021 • David Carr Create Bitly short links with PHP Bitly is a great tool for creating short links, in this post we will use their API to generate links... Read more
8th Sep 2021 • Dan Sherwood How to rebuild search indexes on a table. If you make server changes that could affect your indexes then you will need to rebuild your in... Read more
3rd Sep 2021 • Dan Sherwood Robust CSV export This article will show you how to export data to a CSV format inside a PHP based project. Read more
2nd Sep 2021 • David Carr Format Xero dates from the API Dates in Xero that are not already set to a datestring are in a format like Date(1518685950940+0000) Read more
31st Aug 2021 • David Carr Get the last day of the month from a date To get the last day of the month use date('t') Read more
8th Jul 2020 • David Carr ASCII to Binary in PHP Recently I inherited a project where all file attachments were stored in a database table in the for... Read more
30th May 2020 • David Carr Converting MSSQL to MySQL Need to convert MSSQL to MySQL, this post will point you in the right direction. Read more
13th May 2020 • David Carr MySQL 8 The server requested authentication method unknown to the client Solution for MySQL 8 using unknown authentication method. Read more
10th Apr 2020 • David Carr Writing to an existing PDF with FPDI FPDI allows existing PDF's to be used as a template for a new PDF. Read more
10th Apr 2020 • David Carr Easily assign variable when using explode in PHP I use explode all the time, for splitting strings into parts, there is a cleaner way...... Read more