Skip to content

Commit 75bc203

Browse files
author
Martin René Sørensen
committed
Created Debug Functions "dvd" and "vds".
1 parent 52c7be8 commit 75bc203

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Functions.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,18 @@
33
// Functions.php - 22:43 2015/06/03
44
//for DebugFunctions
55

6+
function vds($item){//var dumb string
7+
ob_start();
8+
var_dump($item);
9+
$result = ob_get_clean();
10+
return $result;
11+
}
12+
13+
function dvd(){//die var dumb
14+
$args = func_get_args();
15+
$string = '';
16+
foreach($args as $variable){
17+
$string .= vds($variable);
18+
}
19+
die('<pre>'.$string);
20+
}

0 commit comments

Comments
 (0)