![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php
行走的帝企鹅
努力变强吧
展开
-
PHP重要数据类型——数组
PHP重要数据类型——数组之前研究了一下python的几种重要的数组,今天来温习一下PHP的数组数组的创建 使用array()函数创建$A = array(); $A = array('a','b','c'); $A = array( 'first' => 'a', 'second' => 'b', 'third' => 'c' ) 使用中括号[ ]创建(php5.4及之后版本支持,其实大家现在学都原创 2017-08-11 11:40:25 · 232 阅读 · 1 评论 -
PHP面向对象
面向对象编程是一种更高层次的抽象,是一种更有序,灵活和直观的编程方式类的创建 使用class关键字创建一个类,通常,类名首字母大写class NewClass{ //创建属性 public $attribute1; protected $attribute2; private $attribute3;//创建方法 public function method1() { } protected fun原创 2017-09-26 17:49:02 · 157 阅读 · 0 评论 -
简单方法安装php的zip扩展pecl-zip
环境:unbuntu16.04, php7.0, apache2.4 安装libzip编译环境(libzip-dev)apt install libzip-dev 安装php编译环境(php7.0-dev)apt install php7.0-dev 安装php的zip扩展(perl是安装php时自带的工具)perl install zip 修改php配置文件(php.ini)添加extentsio原创 2017-09-22 00:58:51 · 5740 阅读 · 0 评论