A php extension implements the Laravel's supports functions.
I want to learn writing c program. Also the extension can be used in normal php develop.
The array_add function adds a given key / value pair to the array if the given key doesn't already exist in the array:
$array = array_add(['name' => 'Desk'], 'price', 100);
// ['name' => 'Desk', 'price' => 100]
The extension need php7, php7-devel.
phpize
./configure
make && make install
Add extension = helpers.so
in php.ini file.