PHP code example of geeksareforlife / utilities

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

    

geeksareforlife / utilities example snippets


$newArray = GeeksAreForLife\Utilities\Arrays::sanitiseArray($array, $keys);

$array = [
  'red'   => 'abc',
  'green' => true,
  'blue'  => [1, 2, 3],
  ];

$array = [
  'red'   => 'abc',
  'blue'  => [1, 2, 3],
  ];