Reducing Errors With Type Hinting in PHP
Errors are unavoidable, but you can always have less of them! In this article, Adebayo Adams walks through how to use type hinting in PHP.
Errors are unavoidable, but you can always have less of them! In this article, Adebayo Adams walks through how to use type hinting in PHP.
The PHP E_WARNING constant refers to run-time warnings. Warnings are non-fatal errors in PHP that do not halt script execution.
In this blog post I want to share a story of a performance bottleneck using the filesystem that we experienced in our development setup. In the Tideways backend, we have a simple homegrown database migration tool that scans a directory for.sql files and applies them if not already done. It is a very old piece of code that I used since before the times of doctrine/migrations. It is much simpler but works for us.
PDF files are foundational for sharing documents across platforms. In this article, learn how to generate PDF files in PHP.
The PHP E_NOTICE constant refers to run-time notices. Notices indicate that the script encountered something that could indicate an error, but could also happen in the normal course of running a script.
This post contains a comprehensive list of all the features that we worked on and deployed over the last 3 months, all included in this 2022.4 release.
The PHP strpos($haystack, $needle, $offset) function is used to find the numeric position of the first occurrence of a substring in a string. The haystack parameter is the string to search in, and needle is the substring being searched for. The E_WARNING: strpos(): Empty needle warning is issued if the needle substring is empty when calling the strpos() function.
With the new PHP 8.2 set to roll out on November 24, 2022, what are your thoughts on the upgrades and the newest features? Have you done a compatibility check yet? if not, here are the right tools for you! PHP stands for the recursive acronym Hypertext Processor, created by the Danish-Canadian programmer Rasmus Lerdorf in 1993 until Suraski and Gutmens started to take up the basic code and rewrite the core PHP, resulting in the Zend engine.
The PHP InvalidArgumentException is an exception that is thrown when an inappropriate argument is passed to a function. This could be because of an unexpected data type or invalid data.
The PHP PDOException is a runtime exception that occurs when something goes wrong while using the PDO (PHP Data Objects) class or its related extensions. For example, this exception can occur while handling database connections or queries.