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 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 ratingsReference to PHP, 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 ratingsReference to PHP, Second Edition Rating: 0 out of 5 stars0 ratingsPHP Examples Part 4 Rating: 0 out of 5 stars0 ratingsPHP Examples Part 3 Rating: 5 out of 5 stars5/510 Lessons in Front-end Rating: 2 out of 5 stars2/5JavaScript: Advanced Guide to Programming Code with JavaScript Rating: 0 out of 5 stars0 ratingsPHP Examples, Part 2 Rating: 1 out of 5 stars1/5Quick JavaScript Learning In Just 3 Days: Fast-Track Learning Course Rating: 0 out of 5 stars0 ratingsJavaScript : Object-Oriented Programming Rating: 0 out of 5 stars0 ratingsJavaScript: Advanced Guide to Programming Code with Javascript: JavaScript Computer Programming, #4 Rating: 0 out of 5 stars0 ratingsJavaScript Patterns JumpStart Guide (Clean up your JavaScript Code) Rating: 4 out of 5 stars4/5Unleashing the Power of TypeScript Rating: 0 out of 5 stars0 ratingsJava Programming for Beginners: Programming Rating: 0 out of 5 stars0 ratingsComputer Programming The Doctrine Rating: 0 out of 5 stars0 ratings120 Advanced JavaScript Interview Questions Rating: 0 out of 5 stars0 ratingsPHP 5 CMS Framework Development - 2nd Edition Rating: 0 out of 5 stars0 ratingsPhpStorm Cookbook Rating: 0 out of 5 stars0 ratingsjQuery Mobile Web Development Essentials - Third Edition Rating: 0 out of 5 stars0 ratingsWb Development full course : from zero to web hero Rating: 0 out of 5 stars0 ratingsProgressive web app A Clear and Concise Reference Rating: 0 out of 5 stars0 ratingsJAVASCRIPT BASICS FOR BEGINNERS: A Beginner-Friendly Guide to Mastering the Foundations of JavaScript Programming (2024) Rating: 0 out of 5 stars0 ratingsAJAX Interview Questions, Answers, and Explanations: AJAX Certification Review Rating: 0 out of 5 stars0 ratingsAn Introduction to Programming in PHP: Stomping Zombies with Variables, Loops, Functions and More: Undead Institute, #14 Rating: 0 out of 5 stars0 ratingsPHP jQuery Cookbook Rating: 0 out of 5 stars0 ratingsPHP and MongoDB Web Development Beginner’s Guide Rating: 0 out of 5 stars0 ratingsCSS Animation: De-animating the Undead Horde: Undead Institute Rating: 0 out of 5 stars0 ratingsHTML5, JavaScript, and jQuery 24-Hour Trainer Rating: 2 out of 5 stars2/5Mission HTML Rating: 0 out of 5 stars0 ratingsjQuery 1.4 Animation Techniques Beginner's Guide Rating: 0 out of 5 stars0 ratings
Programming For You
HTML & CSS: Learn the Fundaments in 7 Days Rating: 4 out of 5 stars4/5Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5Learn to Code. Get a Job. The Ultimate Guide to Learning and Getting Hired as a Developer. Rating: 5 out of 5 stars5/5Python QuickStart Guide: The Simplified Beginner's Guide to Python Programming Using Hands-On Projects and Real-World Applications Rating: 0 out of 5 stars0 ratingsSQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Python Programming : How to Code Python Fast In Just 24 Hours With 7 Simple Steps Rating: 4 out of 5 stars4/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5Excel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5Learn PowerShell in a Month of Lunches, Fourth Edition: Covers Windows, Linux, and macOS Rating: 0 out of 5 stars0 ratingsProgramming Arduino: Getting Started with Sketches Rating: 4 out of 5 stars4/5C# Programming from Zero to Proficiency (Beginner): C# from Zero to Proficiency, #2 Rating: 0 out of 5 stars0 ratingsPYTHON: Practical Python Programming For Beginners & Experts With Hands-on Project Rating: 5 out of 5 stars5/5Spies, Lies, and Algorithms: The History and Future of American Intelligence Rating: 4 out of 5 stars4/5Python: Learn Python in 24 Hours Rating: 4 out of 5 stars4/5HTML in 30 Pages Rating: 5 out of 5 stars5/5How To Become A Data Scientist With ChatGPT: A Beginner's Guide to ChatGPT-Assisted Programming Rating: 5 out of 5 stars5/5Hacking: Ultimate Beginner's Guide for Computer Hacking in 2018 and Beyond: Hacking in 2018, #1 Rating: 4 out of 5 stars4/5C++ Learn in 24 Hours Rating: 0 out of 5 stars0 ratingsPython Data Structures and Algorithms Rating: 5 out of 5 stars5/5Raspberry Pi Electronics Projects for the Evil Genius Rating: 3 out of 5 stars3/5C All-in-One Desk Reference For Dummies Rating: 5 out of 5 stars5/5Unity from Zero to Proficiency (Foundations) Fifth Edition: Unity from Zero to Proficiency, #1 Rating: 5 out of 5 stars5/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