-
PHP栈的定义、入栈出栈方法及基于堆栈实现的计
[PHP教程] 2021-03-16 11:56:00 156人阅读
本篇章节讲解PHP栈的定义、入栈出栈方法及基于堆栈实现的计算器。供大家参考研究具体如下: 栈是线性表的一种,他的特点是后入先出,可以这么理解,栈就像一个存东西的盒子,先放进去的在最底层,后放进去的在上层,...[详细]
-
PHP队列原理及基于队列的写文件案例
[PHP教程] 2021-03-16 11:56:00 162人阅读
本篇章节讲解PHP队列原理及基于队列的写文件案例。供大家参考研究具体如下: 队列是一种线性表,按照先进先出的原则进行的: 入队: 出队: PHP实现队列: 第一个元素作为队头,最后一个元素作为队尾 什么是双端队列...[详细]
-
PHP调用OpenOffice实现word转PDF的方法
[PHP教程] 2021-03-16 02:23:03 157人阅读
最近一直在研究PHP word文档转PDF,也在网上搜索了很多类似的资料,大多数都是通过OpenOffice进行转换的。 核心的代码如下: Bridge_GetStruct("com.sun.star.beans.PropertyValue...[详细]
-
php serialize()与unserialize() 不完全研究
[PHP教程] 2021-03-16 02:17:04 194人阅读
serialize()和unserialize()在php手册上的解释是: serialize — Generates a storable representation of a value serialize — 产生一个可存储的值的表示 unserialize — Creates a PHP value from a stored repres...[详细]
-
PHP+JS实现批量删除数据功能示例
[PHP教程] 2021-03-16 02:17:04 161人阅读
本篇章节讲解PHP+JS实现批量删除数据功能。供大家参考研究具体如下: 表单 " style="background:none; border:none;...[详细]
-
php操作mysql获取select 结果的几种方法
[PHP教程] 2021-03-16 02:17:04 84人阅读
如果用了 MYSQL_BOTH,将得到一个同时包含关联和数字索引的数组。 用 MYSQL_ASSOC 只得到关联索引(如同mysql_fetch_assoc() 那样), 用 MYSQL_NUM 只得到数字索引(如同 mysql_fetch_row 那样)。 1. mysql_fetch_...[详细]
-
PHP使用header方式实现文件下载功能
[PHP教程] 2021-03-16 02:17:04 144人阅读
先给大家介绍下PHP header() 函数 定义和用法 header() 函数向客户端发送原始的 HTTP 报头。 认识到一点很重要,即必须在任何实际的输出被发送之前调用 header() 函数(在 PHP 4 以及更高的版本中,您可以使用输出缓...[详细]
-
PHP mysql_result()函数使用方法
[PHP教程] 2021-03-16 02:17:04 90人阅读
mysql_result定义和用法 mysql_result() 函数返回结果集中一个字段的值。 mysql_result() 返回 MySQL 结果集中一个单元的内容。字段参数可以是字段的偏移量或者字段名,或者是字段表点字段名(tablename.fieldname)...[详细]
-
php实现的生成迷宫与迷宫寻址算法完整实例
[PHP教程] 2021-03-16 02:07:03 167人阅读
本篇章节讲解php实现的生成迷宫与迷宫寻址算法。供大家参考研究具体如下: 较之前的终于有所改善。生成迷宫的算法和寻址算法其实是一样。只是一个用了遍历一个用了递归。参考了网上的Mike Gold的算法。 0){ $tmpArr ...[详细]
-
php实现的中秋博饼游戏之绘制骰子图案功能示例
[PHP教程] 2021-03-16 02:07:03 124人阅读
本篇章节讲解php实现的中秋博饼游戏之绘制骰子图案功能。供大家参考研究具体如下: 最近公司中秋博饼(在厦门),自己没事也想玩玩,所以就想动手写了一个纯php实现的中秋博饼游戏,既然要纯php实现,就要用php来生...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]