PHP Classes

File: src/helpers.php

Recommend this page to a friend!
  Classes of Arda Günsüren   Dev Dumper PHP   src/helpers.php   Download  
File: src/helpers.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Dev Dumper PHP
Show the values of PHP variables in an HTML page
Author: By
Last change:
Date: 7 days ago
Size: 485 bytes
 

Contents

Class file image Download
<?php

use ArdaGnsrn\DevDumper\DevDumper;

if (!
function_exists('ddump')) {
   
/**
     * Dump
     *
     * @param ...$args
     * @return DevDumper
     */
   
function ddump(...$args)
    {
       
$dumper = new DevDumper();
       
$dumper->dump(...$args);
        return
$dumper;
    }
}
if (!
function_exists('ddie')) {
   
/**
     * Dump and Die
     *
     * @param ...$args
     * @return void
     */
   
function ddie(...$args)
    {
       
ddump(...$args)->die();
    }
}