PHP检查输入的函数

Published
September 19, 2022
浏览次数 :  12

public function testInput($data) {
    $data = trim($data);
    $data = stripslashes($data);
    $data = htmlspecialchars($data);
    return $data;
  }

Top