PHP code example of liaosp / array-search
1. Go to this page and download the library: Download liaosp/array-search 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/ */
liaosp / array-search example snippets
$target = [
[
'id'=>1,
'status'=>3
],
[
'id'=>2,
'status'=>1
],
[
'id'=>3,
'status'=>2
],
[
'id'=>4,
'status'=>1
],
[
'id'=>5,
'status'=>1
],
[
'id'=>6,
'status'=>1
],
];