PHP code example of fghazaleh / cport
1. Go to this page and download the library: Download fghazaleh/cport 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/ */
fghazaleh / cport example snippets
$string = 'This is my first string';
$str = new \FG\Support\Strings\Str($string);
// or
$str = \FG\Support\Strings\Str::fromString($string);
$array = [1, 2, 3, 4];
$arr = new \FG\Support\Arrays\Arr($array);
// or
$arr = \FG\Support\Arrays\Arr::createFrom($array);