I've searched google and the php manual, but i couldn't find anything and I doubt it even exists.
But does anyone know of anyway of getting the current line number of code, via a function or variable?
give this a read
http://www.php.net/manual/en/function.set-error-handler.php
cool thanks for pointing me in the right direction.
for all those wondering, LINE will return the current line number of your code.
http://us3.php.net/manual/en/language.constants.predefined.php