Is there a function which returns the line number at which the cursor is?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • aa

    #1

    Is there a function which returns the line number at which the cursor is?

    ftell($fp) returns the position os the cursor in a line
    Is there a function which returns the line number at which the cursor is?


  • Alan Little

    #2
    Re: Is there a function which returns the line number at which the cursor is?

    Carved in mystic runes upon the very living rock, the last words of aa of
    comp.lang.php make plain:
    [color=blue]
    > Is there a function which returns the line number at which the cursor is?[/color]

    Do you mean the current line number in the script? There's no function, but
    there's a pre-defined constant: __LINE__

    --
    Alan Little
    Phorm PHP Form Processor

    Comment

    Working...