Non ho tempo di provarla, ma credo possa funzionare così

Codice PHP:
function getLine(a) { 
    echo 
$a;  





getLine(__LINE__