PHP code example of flagupdown / scanner

1. Go to this page and download the library: Download flagupdown/scanner library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

flagupdown / scanner example snippets



fn("param0","param1");


use FlagUpDown\ScanFunction;

//指明扫描函数,可以扫描多个
$scanFunction = new ScanFunction(['fn']);

//扫描指定文件
$result = $scanFunction->scan('data.php');

[
  'file name' => [
    'function name' => [
      ["param0", "param1"], //扫描到的参数列表
      [...] // 该函数第二次调用时,扫描到的参数列表
      ... // 该函数第n次调用时,扫描到的参数列表
    ]
  ]
]

// fn("param0","param1");
/* fn("param0","param1"); */

'fn("param0","param1")';
"fn('param0','param1')";
+HTML
fn("param0","param1");

 /* php code */

$scanFunction->scan('dir');
$scanFunction->scan('dir', ['ignoreDir0', 'ignoreDir1']);