How to write a verification login class with PHP
This article mainly explains "how to write a verification login class with PHP". Interested friends might as well take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to write a verification landing class with PHP"!
A simple login class that does not separate login from database query
The copy code is as follows:
/ *
* example
*
* $Auth=new Auth ()
* $Auth- > login ("123@123.com", "123")
* $Auth- > logout ()
* echo $r-> init ()
*
* * /
Verify the login class
The copy code is as follows: