PHP语言精髓(揭示PHP的精华)
PHP语言精粹(揭示PHP的精华)
PHP语言精粹(揭示PHP的精华)
基本信息
- 原书名: PHP: The Good Parts: Delivering the Best of PHP
- 原出版社: O'Reilly
- 作者: (美)Peter B.MacIntyre ?? [作译者介绍]
- 译者: 刘涛 丁静
- 出版社:电子工业出版社
- ISBN:9787121153853
- 上架时间:2012-3-12
- 出版日期:2012 年3月
- 页码:176
- 定价 :¥39.00
- 会员价 : ¥29.25(75折)
- 校园优惠价 :¥29.25(75折)
http://product.china-pub.com/199047
?
?
内容简介
php 作为当今主流的服务器端开发语言,广泛应用于世界上各种排名比较靠前的网站,如facebook、flickr 和wikipedia 等。其广泛的应用与其强大的功能相辅相成,密不可分。
在这本书中,你将看到 php 中最为精华的特征,包括类型系统、面向对象机制、数据库交互、安全性保证、内建函数库等。
通过书中极为实用的代码,上述特征的学习和应用将被无缝连接在一起。
作者 peter b. macintyre 在软件开发领域已有超过20 年的经验,曾是php architect 杂志的特约编辑和作者。长期从事php 相关的工作使作者对php 的发展历程非常了解。这也使本书不单可以让人了解php 当前是什么样子,也可以让人了解到它为什么是现在这个样子。 目录
序
第1章 精粹
为什么是php
php历史摘要
php的地位
php是什么
php有哪些成就
php基本设置
第2章“实地勘察”
空白、注释和基本语法
变量:数据类型、弱类型和作用域
定义常量
表达式
判断、选择(流程控制)
if.else.
switch.case.
while.
for
web页面交互
sessions
$_get
$_post
$_request
第3章 函数(代码复用)
参数传递
参数默认值
传值和传引用
include 和 require
内置函数和用户定义函数
第4章 字符串
什么是字符串
你能引用我
字符串函数(精选)
字符串截取
管理字符的大小写
字符串查找
字符串编辑
第5章 数组
索引数组
关联数组
多维数组
数组可以动态构建
遍历数组
数组函数精选
数组排序
数学类函数
其他数组函数
第6章 对象
付诸实践
魔术方法
变量 $this
对象实战
公开的、保护的和私有的
get和set访问器
第7章 数据库交互
mysqli 对象接口
取得数据并显示
php数据对象(pdo)
pdo 预处理对象
低成本数据管理方案
sqlite
用文件替代数据库
第8章 php周边
电子邮件/短信生成
pdf生成
构造方法和基本选项
添加页眉和页脚
添加图片和链接
添加水印
显示动态 pdf 文件和表格
图形报表生成
饼图
柱状图
图形验证码
第9章 php的安全性
数据验证
转义输出
跨站脚本(xxs)和sql注入
密码加密安全
安全技巧
第10章 php 5.3 精粹
命名空间
闭包(匿名函数)
nowdoc
goto 操作符
datetime 和datetimezone类
额外的5.3特征
第11章 高级优势
正则表达式
字符串匹配
字符串替换
字符串分割
simplexml
集成开发环境
activestate的komodo
用于eclipse的zend studio
nusphere的phped
主要网站
php.net
zend.com
devzone.zend.com
phparch.com
php/web 会议
附录 缺点
索引

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

A string is a sequence of characters, including letters, numbers, and symbols. This tutorial will learn how to calculate the number of vowels in a given string in PHP using different methods. The vowels in English are a, e, i, o, u, and they can be uppercase or lowercase. What is a vowel? Vowels are alphabetic characters that represent a specific pronunciation. There are five vowels in English, including uppercase and lowercase: a, e, i, o, u Example 1 Input: String = "Tutorialspoint" Output: 6 explain The vowels in the string "Tutorialspoint" are u, o, i, a, o, i. There are 6 yuan in total

What are the magic methods of PHP? PHP's magic methods include: 1.\_\_construct, used to initialize objects; 2.\_\_destruct, used to clean up resources; 3.\_\_call, handle non-existent method calls; 4.\_\_get, implement dynamic attribute access; 5.\_\_set, implement dynamic attribute settings. These methods are automatically called in certain situations, improving code flexibility and efficiency.

PHP and Python each have their own advantages, and choose according to project requirements. 1.PHP is suitable for web development, especially for rapid development and maintenance of websites. 2. Python is suitable for data science, machine learning and artificial intelligence, with concise syntax and suitable for beginners.

PHP is widely used in e-commerce, content management systems and API development. 1) E-commerce: used for shopping cart function and payment processing. 2) Content management system: used for dynamic content generation and user management. 3) API development: used for RESTful API development and API security. Through performance optimization and best practices, the efficiency and maintainability of PHP applications are improved.

PHP is a scripting language widely used on the server side, especially suitable for web development. 1.PHP can embed HTML, process HTTP requests and responses, and supports a variety of databases. 2.PHP is used to generate dynamic web content, process form data, access databases, etc., with strong community support and open source resources. 3. PHP is an interpreted language, and the execution process includes lexical analysis, grammatical analysis, compilation and execution. 4.PHP can be combined with MySQL for advanced applications such as user registration systems. 5. When debugging PHP, you can use functions such as error_reporting() and var_dump(). 6. Optimize PHP code to use caching mechanisms, optimize database queries and use built-in functions. 7
