PHP code example of jeroendn / php-helpers
1. Go to this page and download the library: Download jeroendn/php-helpers 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/ */
jeroendn / php-helpers example snippets
use jeroendn\PhpHelpers\Helper\ArrayHelper;
$array = [
(new stdClass)->name = 'John',
(new stdClass)->name = 'Hans',
(new stdClass)->name = 'Piet',
]
ArrayHelper::sortByProperty($array, 'name', true);
echo $array[0]->name; // Hans
shell
composer