PHP code example of cryonighter / object-column

1. Go to this page and download the library: Download cryonighter/object-column 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/ */

    

cryonighter / object-column example snippets

 php
[456 => '123', 'asd' => 'qwe']
 php
use function Cryonighter\ObjectColumn\object_column;

$objects =  [
    [
        'foo' => ['baz' => '123'],
        'bar' => ['buz' => '456'],
    ],
    [
        'foo' => ['baz' => 'qwe'],
        'bar' => ['buz' => 'asd'],
    ],
];

$result = object_column($data, null, 'bar.buz');
 bash
$ php vendor/phpunit/phpunit/phpunit tests