Skip to content

Question: Possible to get whole body of function not one line? #66

@klebann

Description

@klebann

Is that possible to get whole body of function as a string when you find specific function in this function?

Example:

function(){
    $var = "not important";
    notme();
}

function2(){
    $var = "important";
    imhere();
}

Command: phpgrep find only imhere();

Output:

    $var = "important";
    imhere();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions