PHP code example of braunstetter / helper
1. Go to this page and download the library: Download braunstetter/helper library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
braunstetter / helper example snippets
Braunstetter\Helper\Arr::attachClass([ 'class' => 'mx-4 my-2' ], 'container')
# output:
# ['class' => 'mx-4 my-2 container']
Braunstetter\Helper\Arr::attach(
[ 'data-controller' => 'example'],
[ 'data-controller' => 'another-example']
)
# output:
# ['data-controller' => 'example another-example']
Braunstetter\Helper\Arr::firstValue([
3 => 'first',
2 => 'second',
0 => 'third'
])
# output:
# first