PHP code example of lvxiaolin / autocode
1. Go to this page and download the library: Download lvxiaolin/autocode 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/ */
lvxiaolin / autocode example snippets
if($User->password == md5($this->getParam('password'))){
//登录成功
}
//$User->password 写成了 $User->pass 导致BUG
if($User->pass == md5($this->getParam('password'))){
//登录成功
}