PHP code example of howkins / cast

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

    

howkins / cast example snippets


	'providers' => [
		Howkins\Cast\Providers\CastServiceProvider::class
	]

	'aliases' => [
		"Cast" => Howkins\Cast\Facades\Cast::class
	]

Cast::_bool('false', $strict = 0); // print bool(false) if strict is 1 will return bool(true)
Cast::_bool('0.0', $strict = 0); // print bool(false) if strict is 1 will return bool(true)