Design a user class USER. The variables in the class include user name, password and variables that record the number of users. Define the constructor method of the class, the methods for getting and setting passwords, and the methods for displaying user information.
Are you asking others to write a complete class for you to use? This is not the style of members of php Chinese website. The correct way is to write first and ask for help if you encounter difficulties