
PHP Quick Scripting Reference
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
The PHP Quick Scripting Reference is a condensed scripting code and syntax reference to the PHP scripting language, the most popular Web scripting language in use today. It presents the essential PHP script in a well-organized format that can be used as a handy reference.
You won't find any technical jargon, bloated samples, drawn out history lessons or witty stories in this book. What you will find is a Web scripting language reference that is concise, to the point and highly accessible. The book is packed with useful information and is a must-have for any PHP programmer or Web developer
In the PHP Quick Scripting Reference, you will find:
- A concise reference to the PHP scripting language syntax.
- Short, simple and focused code examples.
- A well laid out table of contents and a comprehensive index allowing easy review.
More details
Other editions
Additional editions

Person
Content
- Intro
- Contents at a Glance
- Contents
- About the Author
- Introduction
- Chapter 1: Using PHP
- Embedding PHP
- Outputting text
- Installing a web server
- Hello world
- Compile and parse
- Comments
- Chapter 2: Variables
- Defining variables
- Data types
- Integer type
- Floating-point type
- Bool type
- Null type
- Default values
- Chapter 3: Operators
- Arithmetic operators
- Assignment operators
- Combined assignment operators
- Increment and decrement operators
- Comparison operators
- Logical operators
- Bitwise operators
- Operator precedence
- Additional logical operators
- Chapter 4: String
- String concatenation
- Delimiting strings
- Heredoc strings
- Nowdoc strings
- Escape characters
- Character reference
- String compare
- Chapter 5: Arrays
- Numeric arrays
- Associative arrays
- Mixed arrays
- Multi-dimensional arrays
- Chapter 6: Conditionals
- If statement
- Switch statement
- Alternative syntax
- Mixed modes
- Ternary operator
- Chapter 7: Loops
- While loop
- Do-while loop
- For loop
- Foreach loop
- Alternative syntax
- Break
- Continue
- Goto
- Chapter 8: Functions
- Defining functions
- Calling functions
- Function parameters
- Default parameters
- Variable parameter list
- Return statement
- Scope and lifetime
- Anonymous functions
- Function overloading
- Built-in functions
- Chapter 9: Class
- Instantiating an object
- Accessing object members
- Initial property values
- Constructor
- Destructor
- Case sensitivity
- Object comparison
- Chapter 10: Inheritance
- Overriding members
- Final keyword
- Instanceof operator
- Chapter 11: Access Levels
- Private access
- Protected access
- Public access
- Var keyword
- Object access
- Access level guideline
- Chapter 12: Static
- Referencing static members
- Static variables
- Late static bindings
- Chapter 13: Constants
- Const
- Define
- Const and define
- Constant guideline
- Magic constants
- Chapter 14: Interface
- Interface signatures
- Interface example
- Interface usages
- Interface guideline
- Chapter 15: Abstract
- Abstract methods
- Abstract example
- Abstract classes and interfaces
- Abstract guideline
- Chapter 16: Traits
- Inheritance and traits
- Trait guideline
- Chapter 17: Importing Files
- Include path
- Require
- Include_once
- Require_once
- Return
- Auto load
- Chapter 18: Type Hinting
- Chapter 19: Type Conversions
- Explicit casts
- Settype
- Gettype
- Chapter 20: Variable Testing
- Isset
- Empty
- Is_null
- Unset
- Determining types
- Variable information
- Chapter 21: Overloading
- Property overloading
- Method overloading
- Isset and unset overloading
- Chapter 22: Magic Methods
- Tostring
- Invoke
- Object serialization
- Sleep
- Wakeup
- Set state
- Object cloning
- Chapter 23: User Input
- HTML form
- Sending with post
- Sending with get
- Request array
- Security concerns
- Submitting arrays
- File uploading
- Superglobals
- Chapter 24: Cookies
- Creating cookies
- Cookie array
- Deleting cookies
- Chapter 25: Sessions
- Starting a session
- Session array
- Deleting a session
- Chapter 26: Namespaces
- Creating namespaces
- Nested namespaces
- Alternative syntax
- Referencing namespaces
- Namespace aliases
- Namespace keyword
- Namespace guideline
- Chapter 27: References
- Assign by reference
- Pass by reference
- Return by reference
- Chapter 28: Advanced Variables
- Curly syntax
- Variable variable names
- Variable function names
- Variable class names
- Chapter 29: Error Handling
- Correcting errors
- Error levels
- Error handling environment
- Custom error handlers
- Raising errors
- Chapter 30: Exception Handling
- Throwing exceptions
- Try-catch statement
- Catch block
- Finally block
- Re-throwing exceptions
- Uncaught exception handler
- Errors and exceptions
- Index
System requirements
File format: PDF
Copy protection: Watermark-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Use the free software Adobe Reader, Adobe Digital Editions, or any other PDF viewer of your choice (see eBook Help).
- Tablet/Smartphone (Android; iOS): Install the free app Adobe Digital Editions or another reading app for eBooks, e.g., PocketBook (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Watermark-DRM, a „soft” copy protection. This means that there are no technical restrictions to prevent illegal distribution. However, there is a personalised watermark embedded in the eBook that can be used to identify the purchaser of the eBook in the event of misuse and to provide evidence for legal purposes.
For more information, see our eBook Help page.