We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 722f24f commit c12c2edCopy full SHA for c12c2ed
1 file changed
debuging.php
@@ -0,0 +1,38 @@
1
+<?php
2
+
3
4
+function _debug(...$vars) {
5
+ foreach ($vars as $var) {
6
+ echo "<pre>";
7
+ print_r($var);
8
+ echo "</pre>";
9
+ }
10
+}
11
12
13
+function _dump(...$vars) {
14
15
16
+ var_dump($var);
17
18
19
20
21
22
+function _stop($message = '') {
23
+ exit($message);
24
25
26
27
+function _condition($condition, $label) {
28
+ echo "Condition <{$label}> is: ";
29
+ if ($condition)
30
+ echo "<true>";
31
+ else
32
+ echo "<false>";
33
34
35
36
+function _line($message = "Execution reached this line :" . __LINE__) {
37
+ echo $message;
38
0 commit comments