PHP函数
来源:互联网 发布:全民夺宝助手软件 编辑:程序博客网 时间:2024/06/06 19:55
<?phpecho strncmp("I love China!","I love Shanghai!",6);?>
<?class User{private $name;public function getName(){return "UserName is ".$this->name;}}class NormalUser extends User {private $age = 99;public function getAge(){return "age is ".$this->age;}}class UserAdmin{ //操作.public static function getUserInfo(User $_user){if($_user instanceof NormalUser ){echo $_user->getAge();}else{echo "类型不对,不能使用这个方法.";}}}$User = new User(); // 这里new的是User.UserAdmin::getUserInfo($User);?>
0 0
- php函数
- php函数
- PHP函数
- php函数
- PHP 函数
- php函数
- PHP 函数
- PHP函数
- PHP 函数
- PHP函数
- PHP函数
- php函数
- PHP 函数
- php函数
- php函数
- php函数
- php函数
- php 函数
- 线程(一)--线程控制-join方法
- 在Mac环境下安装AndroidStudio
- Android内核开发:从源码树中删除出厂的app应用
- linux开发缩写
- Python:You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit byt
- PHP函数
- C# Report根据条件设置显示颜色
- python的【字典dict】:创建、访问、更新、删除;查看键、值、键值对;遍历;排序
- 设置横竖屏切换及全屏显示
- iOS金额输入小数点后两位限制
- proguard混淆常用保存笔记
- 使用Alcatraz为Xcode安装XActivatePowerMode插件, 从此敲代码逼格大大滴~
- ios 表单上传图片和参数的2种方法
- 亲密数