PHP code example of felideo / debug2
1. Go to this page and download the library: Download felideo/debug2 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/ */
felideo / debug2 example snippets
$organisms = [
'Animalia' => [
'Chordata' => [
'mamalia' => [
'cat',
'dog',
'human'
],
'aves' => [
'Ostrich',
'chicken'
]
]
]
];
debug2($organisms, 'Organism Variable', true);
============================ DEBUG2 OFICIAL ==========================
ORGANISM VARIABLE
Array
(
[Animalia] => Array
(
[Chordata] => Array
(
[mamalia] => Array
(
[0] => cat
[1] => dog
[2] => human
)
[aves] => Array
(
[0] => Ostrich
[1] => chicken
)
)
)
)
#0 debug2() called at [/media/armazenamento/www/FelideoMVC/modulos/index/controller/index.php:29]
#1 Controller\Index->index() called at [/media/armazenamento/www/FelideoMVC/framework/BigBang.php:102]
#2 Framework\BigBang->execute() called at [/media/armazenamento/www/FelideoMVC/framework/BigBang.php:48]
#3 Framework\BigBang->is_index() called at [/media/armazenamento/www/FelideoMVC/framework/BigBang.php:11]
#4 Framework\BigBang->expanse() called at [/media/armazenamento/www/FelideoMVC/index.php:27]
use Illuminate\Support\Collection;
use Illuminate\Support\Str;
Collection::macro('toUpper', function () {
return $this->map(function (string $value) {
return Str::upper($value);
});
});
$collection = collect(['first', 'second']);
reflect($collection, 'count', true);