Posted by Ivαn Sαnchez Ortega on 01/31/08 22:34
salmobytes wrote:
> In C you can make debug statments that announce the current
> line number in the source, with something like:
> printf("%d\n",__LINE__);
>
> How can you do echo the equivalent of C's __LINE__ macro
> on non-error but interesting debugging conditions?
Surprise! You can do that with:
<?php
printf("%d\n",__LINE__);
?>
Or you can use the shorter <?php echo __LINE__; ?>
Cheers,
--
----------------------------------
IvΓ‘n SΓ‘nchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
Conscience doth make cowards of us all.
-- Shakespeare
[Back to original message]
|