views:

22

answers:

2

Hi,

How can I get the line-/col-number of the current element in phpQuery?

I use the phpQuery framework for a validation tool with custom errors.

Thanks!

A: 
__LINE__

The above code will get the current line number of a php script. As far as I know, there is no way to get the character number.

Joel
A: 

You might try debug_backtrace()

Phill Pafford