PHP code example of willskates / arrayfetcher
1. Go to this page and download the library: Download willskates/arrayfetcher 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/ */
willskates / arrayfetcher example snippets
use WillSkates\ArrayFetcher\ArrayFetcher;
$fetcher = new ArrayFetcher();
$array = $fetcher->fetch('/path/to/filename.extension');
use WillSkates\ArrayFetcher\ArrayFetcher;
$dir = new ArrayFetcher('/path/to/dir');
$array = $dir->fetch('filename.extension');