PHP code example of kellerkinder / fancy-sorter

1. Go to this page and download the library: Download kellerkinder/fancy-sorter 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/ */

    

kellerkinder / fancy-sorter example snippets


$sorter = new JeansSizeSorter();
$result = $sorter->sort(['30/32', '32 / 34', '32/ 30', '30W/30L', '32W / 32L']);
// => ['30W/30L', '30/32', '32/ 30', '32W / 32L', '32 / 34']