没有合适的资源?快使用搜索试试~ 我知道了~
PHP Cookbook 3rd 2014
需积分: 10 8 下载量 121 浏览量
2016-02-26
23:23:12
上传
评论
收藏 12.29MB PDF 举报
温馨提示
试读
813页
PHP is the engine behind millions of dynamic web applications. Its broad feature set, approachable syntax, and support for different operating systems and web servers have made it an ideal language for both rapid web development and the methodical con‐ struction of complex systems.
资源推荐
资源详情
资源评论
David Sklar and Adam Trachtenberg
THIRD EDITION
PHP Cookbook
PHP Cookbook, Third Edition
by David Sklar and Adam Trachtenberg
Copyright © 2014 David Sklar and Adam Trachtenberg. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are
also available for most titles (http://my.safaribooksonline.com). For more information, contact our corporate/
institutional sales department: 800-998-9938 or corporate@oreilly.com.
Editors: Rachel Roumeliotis and Allyson MacDonald
Production Editor: Melanie Yarbrough
Copyeditor: Kim Cofer
Proofreader: Charles Roumeliotis
Indexer: Judith McConville
Cover Designer: Karen Montgomery
Interior Designer: David Futato
Illustrator: Rebecca Demarest
June 2001: First Edition
June 2004: Second Edition
June 2014: Third Edition
Revision History for the Third Edition:
2014-06-25: First release
See http://oreilly.com/catalog/errata.csp?isbn=9781449363758 for release details.
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of O’Reilly
Media, Inc. PHP Cookbook, the image of a Galapagos land iguana, and related trade dress are trademarks
of O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as
trademarks. Where those designations appear in this book, and O’Reilly Media, Inc. was aware of a trademark
claim, the designations have been printed in caps or initial caps.
While every precaution has been taken in the preparation of this book, the publisher and authors assume
no responsibility for errors or omissions, or for damages resulting from the use of the information contained
herein.
ISBN: 978-1-449-36375-8
[LSI]
Table of Contents
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
1. Strings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1 Accessing Substrings 5
1.2 Extracting Substrings 6
1.3 Replacing Substrings 7
1.4 Processing a String One Byte at a Time 9
1.5 Reversing a String by Word or Byte 10
1.6 Generating a Random String 11
1.7 Expanding and Compressing Tabs 12
1.8 Controlling Case 14
1.9 Interpolating Functions and Expressions Within Strings 16
1.10 Trimming Blanks from a String 17
1.11 Generating Comma-Separated Data 18
1.12 Parsing Comma-Separated Data 20
1.13 Generating Fixed-Width Field Data Records 21
1.14 Parsing Fixed-Width Field Data Records 22
1.15 Taking Strings Apart 25
1.16 Wrapping Text at a Certain Line Length 27
1.17 Storing Binary Data in Strings 28
1.18 Program: Downloadable CSV File 31
2. Numbers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
2.1 Checking Whether a Variable Contains a Valid Number 36
2.2 Comparing Floating-Point Numbers 37
2.3 Rounding Floating-Point Numbers 38
2.4 Operating on a Series of Integers 40
2.5 Generating Random Numbers Within a Range 42
2.6 Generating Predictable Random Numbers 43
iii
剩余812页未读,继续阅读
资源评论
nexxt
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功