Something along the lines of:
echo "thisvar is '$thisvar' at __LINENO__";
Most C compilers that I've worked with have something like this. I just
can't believe there isn't something along these lines in PHP. It would
make basic debugging a lot easier.
Anybody know of such a thing?
__LINE__
--
Henrik Hansen
The alt.php faq: http://www.alt-php-faq.org/
> > Something along the lines of:
>>
> > echo "thisvar is '$thisvar' at __LINENO__";
> > Anybody know of such a thing?
> __LINE__
Thanks! I couldn't find it in the docs.
Steve
Can you please provide a url where constants like __LINE__ are documented?
best regards,
Andreas Hjordt
http://dk.php.net/manual/en/language.constants.php (and the subpages).
Thanks for quoting the entire discussion.
np.