Using arrays as a lightweight database in Laravel

— There are times when you don’t want to use a full-fledged database like MySQL or PostgreSQL for your application. For instance, if you’re building a small application that relies heavily on reading small subset of data, you might not want to setup a database table for something like that.

Checking the type of a string in PHP

— If you’re working with PHP, you might have come across a situation where you need to check the type of the string. For instance, you might want to check if the string is a number, alphabetic, alphanumeric, or a binary string.