Functions Type Hinting and Void Functions in PHP 7

Overview Since PHP5 functions had the ability to accept arrays and classes as parameter types. Now PHP 7 expands that list to bool, float, int, string. You can also set types for the return values, and allow for these values to accept a null value. Finally you can set a function as void which will prevent it from […]

PHP POST Form Inputs – Multidimensional Arrays

In PHP it is common to have form inputs with the same name. Many times these will be generated dynamically (i.e. a WordPress Repeatable Custom Meta Field). PHP stores these values to the POST Superglobal as a multidimensional array. To begin with, run this example script here PHP Form Inputs Example.