background picture of the home page

Hi,Friend

PHP自定义函数(1)--- 格式化金钱

对数字进行格式化,以类似¥10,000,000的格式 /** * @name 小数位截取格式化金额 例如 100000.00 -> 100,000.00 * @param float $num [格式化前的金额] * @param integer $dist [保留的小数位

thumbnail of the cover of the post

多文件上传

/** * Notes: 多文件上传数组 * User: SongZhanDi * Date: 2018/9/6 * Time: 16:28 * @return mixed */ function buildInfo(){ $i = 0; foreach ($_FILES a

thumbnail of the cover of the post

PHP-MVC及框架

1:谈谈你对MVC的认识,介绍几种比较流行的MVC框架 MVC工作原理 Model-数据模型层 View-视图层 Controller-逻辑层 常见的MVC框架 ThinkPHP,Yii2,CI,Yaf,Laravel

thumbnail of the cover of the post

PHP-常见功能设计

编写一个在线留言本,实现用户的在线留言功能,留言信息存储到数据库,要求数据表内容以及使用PHP编码完成 数据表设计 分析数据表结构 留言信息:id,标题,内容,时间,留言人 数据表的创建:留言本表:message creat table message( 'id' int unsigned not

thumbnail of the cover of the post

PHP-常见高并发解决方案

PHP如何解决网站大流量与高并发的问题 高并发架构的概念 相同的时间点有多少个访问同时到达 QPS:每秒请求或者查询的数量,在互联网领域,指每秒响应请求数(http) 吞吐量:单位时间处理的请求数 PV:24小时内综合浏览量,页面数量 UV:独立访客,时间范围内访问相同网站,只算为1个独立访客 带宽

thumbnail of the cover of the post

PHP-常见算法

1:请写出常见的排序算法,并用PHP实现冒泡排序,将数组按照从小到大的方式进行排序 冒泡排序的原理和实现 原理:两辆相邻的数进行比较,如过反序就交换,否则将就不交换 时间复杂度:最坏(O(n^2)),平均(O(n^2)) 空间复杂度:O(1)

thumbnail of the cover of the post

PHP基础知识篇

1.什么是引用变量? 用不同的名字访问同一个变量内容:在PHP中引用意味着用不同的名字访问同一个变量内容,使用&符号 注:unset(),只会取消引用,不会销毁内存空间. 对象本身就是引用传递. 例题: 2.PHP中可以使用哪三种定义字符串的方法和各自的区别是什么? 单引号 不能解析变量和转义字符,

thumbnail of the cover of the post