PHP code example of lotos2512 / array_search_model

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

    

lotos2512 / array_search_model example snippets

 
    $data = ChildArraySearchModel::find()
      ->where(['in', 'array_field', array])
      ->where(['===', 'array_field_or_callback_with_result_can_be_array_or_array_value', equal_value])
      ->where(['regex', array_field_or_callback_with_result_can_be_array_or_array_value, equal_value|equal_value|equal_value])
      ->orderBy(callback_with_sort_function_result)
      ->limit(int_value)
      ->offset(int_value)
      ->indexBy('array_field')
      ->all();
  
  

php composer.phar