PHP code example of assegaiphp / util

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

    

assegaiphp / util example snippets


use Assegai\Util\ArrayUtil;

$numericArray = [1, 2, 3, 4, 5];

if (ArrayUtil::contains($numericArray, 3)) {
    echo 'The array contains the value 3.';
} else {
    echo 'The array does not contain the value 3.';
}