PHP code example of minhkhoablieu / iamlazy

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

    

minhkhoablieu / iamlazy example snippets


use iAmLazy\HelpMe;

HelpMe::isOdd(5)

use iAmLazy\HelpMe;

HelpMe::isEven(8)

use iAmLazy\HelpMe;

HelpMe::isJson('{"name":"abc", "email": "[email protected]"}')

use iAmLazy\HelpMe;

HelpMe::flatten([[1, 2], [2, 3]])

use iAmLazy\HelpMe;

HelpMe::isPrime(7)