properties.php

来自「这是一个专门用来描述PHP5 OOP的电子书」· PHP 代码 · 共 27 行

PHP
27
字号
<?// Properties.php//定义了一些参数,集中修改更方便,有些不会在程序中改变的变量可以设置为const类型.class Properties{		const User = "User";		static $title = "my Test";			static $UsernameLengthMin = 3;	static $UsernameLengthMax = 8;	static $username = "username";	static $validate_Username = "erro_Username";	static $validate_UsernameInfo = "用户名格式无效。";	static $validate_UsernameLengthMin = "用户名太短";	static $validate_UsernameLengthMax = "用户名太长";			static $PasswordLengthMin = 3;	static $PasswordLengthMax = 8;	static $password="password";	static $validate_Password = "erro_Password";	static $validate_PasswordInfo="用户格式无效";	static $validate_PasswordLengthMin="密码太短";	static $validate_PasswordLengthMax="密码太长";			static $loginFailes =  "login.php";	static $loginSuccess = "loginSuccess.php";	}?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?