Introduction to PHP, Part 2, Second Edition
By Adam Majczak
()
About this ebook
This Second Edition is updated and improved. It is a continuation of the "Introduction to PHP, Part 1, Second Edition". This Part )2) describes PHP Arrays and PHP Functions, Intermixing with JavaScript.
Read more from Adam Majczak
Introduction to PHP Rating: 3 out of 5 stars3/5Introduction to PHP, Part 1, Second Edition Rating: 0 out of 5 stars0 ratingsIntroduction to PHP, Part 4, Second Edition Rating: 0 out of 5 stars0 ratingsReference to PHP, Second Edition Rating: 0 out of 5 stars0 ratingsIntroduction to PHP, Part 3, Second Edition Rating: 0 out of 5 stars0 ratingsIntroduction to PHP, Part 5, Second Edition Rating: 0 out of 5 stars0 ratings
Related to Introduction to PHP, Part 2, Second Edition
Related ebooks
Introduction to PHP, Part 5, Second Edition Rating: 0 out of 5 stars0 ratingsPHP programming Rating: 0 out of 5 stars0 ratingsMastering phpMyAdmin 3.1 for Effective MySQL Management Rating: 3 out of 5 stars3/5PHP Interview Questions, Answers, and Explanations: PHP Certification Review: PHP FAQ Rating: 0 out of 5 stars0 ratingsMySQL 5.1 Plugin Development Rating: 0 out of 5 stars0 ratingsLearning PHP Data Objects Rating: 5 out of 5 stars5/5PHP Programming For Beginners: The Simple Guide to Learning PHP Fast! Rating: 0 out of 5 stars0 ratingsLearn PHP: Learn PHP Programming in 4 hours! PHP for Beginners - Smart and Easy Ways to learn PHP & MySQL Rating: 4 out of 5 stars4/5Jump Start PHP Environment: Master the World's Most Popular Language Rating: 0 out of 5 stars0 ratingsPHP Examples, Part 2 Rating: 1 out of 5 stars1/5PHP & MYSQL: 200 Solved Exercises and Projects for Practice Rating: 0 out of 5 stars0 ratingsLearn PHP Programming in 7Days: Ultimate PHP Crash Course For Beginners Rating: 3 out of 5 stars3/5An Introduction to Programming in PHP: Stomping Zombies with Variables, Loops, Functions and More: Undead Institute, #14 Rating: 0 out of 5 stars0 ratingsSimplified PHP Rating: 0 out of 5 stars0 ratingsPHP for Beginners: Your Guide to Easily Learn PHP In 7 Days Rating: 4 out of 5 stars4/5PHP Error Reporting: How To Do It Right Rating: 0 out of 5 stars0 ratingsExpert PHP 5 Tools Rating: 4 out of 5 stars4/5PHP for Beginners Rating: 0 out of 5 stars0 ratingsPHP Examples Part 4 Rating: 0 out of 5 stars0 ratingsPHP Mastery: Crafting Dynamic Web Solutions Rating: 0 out of 5 stars0 ratingsPHP Team Development Rating: 3 out of 5 stars3/5Magento Beginner's Guide Rating: 0 out of 5 stars0 ratingsHTML Forms & Interactive Elements: Or How to Poke a Zombie in the Eye: Undead Institute, #5 Rating: 0 out of 5 stars0 ratingsPHP and MongoDB Web Development Beginner’s Guide Rating: 0 out of 5 stars0 ratingsResponsive Design High Performance Rating: 0 out of 5 stars0 ratingsWordPress 3 Plugin Development Essentials Rating: 4 out of 5 stars4/5PhpStorm Cookbook Rating: 0 out of 5 stars0 ratingsSetup Your WordPress 4.X.X Website From Scratch Rating: 0 out of 5 stars0 ratings
Trending on #Booktok
Pride and Prejudice Rating: 4 out of 5 stars4/5It Ends with Us: A Novel Rating: 4 out of 5 stars4/5If We Were Villains: A Novel Rating: 4 out of 5 stars4/5The Summer I Turned Pretty Rating: 4 out of 5 stars4/5Beauty and the Beast Rating: 4 out of 5 stars4/5Crime and Punishment Rating: 4 out of 5 stars4/5Once Upon a Broken Heart Rating: 4 out of 5 stars4/5Rich Dad Poor Dad Rating: 4 out of 5 stars4/5Better Than the Movies Rating: 4 out of 5 stars4/5The Little Prince: New Translation Version Rating: 5 out of 5 stars5/5Divine Rivals: A Novel Rating: 4 out of 5 stars4/5Milk and Honey: 10th Anniversary Collector's Edition Rating: 4 out of 5 stars4/5Finnegans Wake Rating: 4 out of 5 stars4/5
Reviews for Introduction to PHP, Part 2, Second Edition
0 ratings0 reviews
Book preview
Introduction to PHP, Part 2, Second Edition - Adam Majczak
Introduction to PHP
Part II
Adam Majczak
C. Adam Majczak, 2015, All Rights Reserved
Smashwords: Second English Edition
(improved and updated)
E-Edition, License Notes
This e-book is licensed for your personal use only. This e-book may not be re-sold or given away to others. To share this book with another person, please purchase an additional copy for each recipient.
While every precaution has been taken in the preparation of this book, the publisher and the author assume no responsibility for errors or omissions, or any for damages resulting from any use of the information contained herein.
ENGLISH EDITION
CONTENTS:
PART 2:
CHAPTER 5: Array processing
Character strings as 1D arrays
Mixed arrays
Multi-dimensional arrays
Internal pointer and some useful functions
CHAPTER 6: When we need conditional statements and loops
If statement (if-elseif-else) and switch-case statement
The while and do-while loops
The for and foreach loops
The break, continue and goto keywords
Filtering mask with binary operators
CHAPTER 7: PHP functions
Argument passing by value and using default values
Variable argument list
Anonymous functions
Arrays as arguments and return values
Argument passing by reference
Returning an array or modifying values by reference
Locals vs. globals
Variable scope in PHP vs. JavaScript
Math functions
Searching and sorting
Quick binary search
PHP runtime-created functions
Generators
PART 1:
Why IT books should be updated?
CHAPTER 1: Introduction to the e-book edition
What is PHP?
What is a PHP File?
How to install a PHP interpreter?
How to test local configuration?
How to use PHP based on Command Line Interface (CLI)?
How to run PHP on a remote server?
Compileonline.com: PHP Page vs. PHP Web View Page
Text output – codepad.org
Embedding PHP
Comments in PHP and including files
CHAPTER 2: PHP variables and constants
Variable names and values
Case sensitivity
Error messages and warnings
Data types in PHP
Using constants in PHP
Integer data type
Floating-point numbers
Bool type (Boolean values)
Null type variable and type checking in PHP
Dynamic variables
CHAPTER 3: Operators
Arithmetic operators
Assignment operator and combined operators
Comparison operators
Logical operators
Type cast forcing
Conditional statements (preview)
Base converting functions and bitwise operators
Operator precedence
The ternary operator
CHAPTER 4: PHP Arrays at a glance
Numeric indexed arrays, runtime array size change
Associative arrays
How to add new key => value pairs to associative arrays?
How to format output data?
Since 2013 PHP was improved and updated. In this new (improved and updated) edition I am using some new tools available online. Code examples was also checked, updated and improved. This edition includes also new PHP features (for example: generators) to become more complete.
CHAPTER 5: Array processing
Character strings as 1D arrays
Characters and their ASCII codes can be mutually converted in PHP using PHP native functions ord() and