<?php namespace Streamer; class FileStream extends Stream { public static function create($filename, $mode, $use_include_path = false, $context = null) { $type = gettype($context); if($type == 'resource') { return new self(fopen($filename, $mode, $use_include_path, $context)); } return new static(fopen($filename, $mode, $use_include_path)); } }
面向对象(Object Oriented,OO)是软件开发方法。面向对象的概念和应用已超越了程序设计和软件开发,扩展到如数据库系统、交互式界面、应用结构、应用平台、分布式系统、网络管理结构、CAD技术、人工智能等领域。面向对象是一种对现实世界理解和抽象的方法,是计算机编程技术发展到一定阶段后的产物。
申明:本站所有资源都是转载各大下载站,或由网友投稿发布,请自行检测软件的完整性,如有侵权请联系我们删除下架,联系方式:admin@php.cn