Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Acknowledgement
Chapter 1
What is PHP?
Who is this Book For?
Why Learn PHP?
How Do You Install PHP?
Installing PHP on Windows
Installing PHP on Mac OS X
PHP on Your Server
The Example Files
Summary
Chapter 2
PHP Files
Variables
Values
Strings
Numbers
Booleans
Null
Array
Comments
Operators
Arithmetic Operators
The String Operator
Assignment Operators
Incrementing / Decrementing Operators
Comparison Operators
Logical Operators
Conditional Operator
Functions
Code Style
Summary
Chapter 3
Control Structures
if and else (and elseif )
for / foreach
return / break / continue
switch
require / include / require_once / include_once
Final Thought on Control Structures
PHP Internal Functions
String Functions
Breaking Up and Getting Together
A Case of Changed Case
Keeping Thing Trimmed
Replacements
How Long?
Needle in a Haystack
Et Cetera
Array Functions
Pushin' and Poppin'
Mappin' and Walkin'
Searching High and Low
Slicin' and Dicin'
Sorting Things Out
Counting Your Chickens (After They Hatch)
Summing it all Up
Date and Time Functions
parse_date
time
strftime
Math Functions
max / min
mt_rand
round / ceil / floor
JSON Functions
File Functions
fopen
Reading a File
Writing a File
fclose
The Oddities
Summary
Chapter 4
Scope
Superglobals
$_GET
$_POST
Persistence
Cookies
Sessions
Databases
Summary
Chapter 5
Keeping Things Safe
When Things Go Wrong
Errors
Warnings
Notices
Handling Errors
.htaccess
Frameworks
Deploying
Conclusion
Appendix A: What We Didn't Cover
Appendix B: Further Resources
About the Author
← Prev
Back
Next →
← Prev
Back
Next →