Re: Stupid is as Stupid does
| From: | Sudheer | Date: | Fri, 27 Feb 2009 07:32:29 +0000 |
| Subject: | Re: Stupid is as Stupid does | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-288906@lists.php.net to get a copy of this message | ||
Michael A. Peters wrote:
If variable is an integer, die($var) returns nothing and is suppose to return nothing, it takes a string as an argument to echo on death - die("$var") is what I wanted. I often use<?php var_dump($myVar); exit(1); ?> to debug and print the value of the variable. xDebug adds nice formatting to var_dump(). -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net