PHP code example of oleics / ac-common
1. Go to this page and download the library: Download oleics/ac-common 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/ */
oleics / ac-common example snippets
use Ac\Common\Common;
if(Common::is_assoc($arr)) {
// $arr is an associative array
}
use Ac\Common\Path;
$match = Path::find('foo.text');
if($match !== false) {
// found a file named 'foo.txt'
}