25,000+ Courses Nationwide
0345 4506120

PHP Programming

The PHP Programming course is designed to give delegates the knowledge to develop/maintain PHP scripts.

Who will the Course Benefit?

Programmers who need to write or maintain scripts in PHP.

Select specific date to see price, venue and full details.

Learning Objectives

Knowledge of PHP to write, maintain and understand PHP scripts.

The delegate will learn and acquire skills as follows:

  • Declare variables and initialise them
  • Construct expressions with arithmetic, logical and relational operators
  • Use iterative type statements
  • Use conditional statements
  • Read/write text and binary files
  • Manipulate text using regular expression
  • Use and code functions
  • Use built-in library functions
  • Use arrays and hashes
  • Create and use external PHP Code

Pre-Requisites

equirements

Delegates attending this course should be able to define general programming concepts including compilation and execution, variables, arrays, sequence, selection and iteration, navigate the filesystem (on the command line ideally), edit and save text files and browse the web. This knowledge can be obtained by attendance on the pre-requisite Introduction to Programming course.

Pre-Requisite Courses

  • Introduction to Programming

Follow-On Courses

  • PHP & MySQL for Web Developmen
  • Apache Web Serve
  • Introduction to MySQ
  • Perl Programmin
  • Ruby Programmin
  • Ruby on Rail
  • Python Programming 1
Notes:
  • Course technical content is subject to change without notice.
  • Course content is structured as sessions, this does not strictly map to course timings. Concepts, content and practicals often span sessions.

Course Content

Course Contents - DAY 1

Course Introduction

  • Administration and Course Materials
  • Course Structure and Agenda
  • Delegate and Trainer Introductions

Session 1: HISTORY OF PHP

  • Installing PHP
  • General Requirements
  • UNIX based Systems
  • Windows based Systems
  • Integrated Development Environment (IDE)

Session 2: PHP LANGUAGE BASICS

  • Programming Basics
  • Comment markers
  • PHP Tags
  • Output Commands
  • Using STDIN STDOUT and STDERR
  • Using Files
  • Include_path
  • Opening files
  • Reading files
  • Writing to Files
  • RTRIM

Session 3: PHP VARIABLES

  • Naming Rules
  • Data Types
  • Numerical
  • Integer
  • Floating Point Numbers
  • Floating Point Precision
  • Single Quoted Strings
  • Double Quoted Strings
  • Creating and Assigning Variables
  • Assigning Values to Variables
  • Type Conversion
  • Variable Scoping
  • Global Keyword
  • Static Keyword
  • Super Globals
  • Constants
  • Variable Variables
  • Operators
  • Assignment Operators
  • Increment/Decrement Operators
  • Arithmetic Operators
  • String Operators
  • Comparison Operators
  • Logical Operators

Course Contents - DAY 2

Session 4: CONTROL STRUCTURES

  • Statement Blocks
  • If Construct
  • Else Keyword
  • Elseif Keyword
  • Looping Constructs
  • While Loop
  • Do-while Loop
  • For Loop
  • Foreach Loop
  • Loop Control Words
  • Break
  • Continue

Session 5: REGULAR EXPRESSIONS

  • Meta-Characters
  • Backslash
  • Unicode Character Properties
  • Circumflex and Dollar
  • Full Stop
  • Square Brackets
  • Vertical Bar
  • Multipliers
  • Subpatterns
  • Repetition
  • Pattern Matching with ereg and eregi
  • Pattern Matching with preg_match
  • Splitting Text
  • Switch

Session 6: PHP ARRAYS

  • Syntax
  • Creating/Modifying with Square-Bracket Syntax
  • Array Functions
  • Pitfalls when using Arrays
  • Using a Return value as a Key
  • Converting to Array
  • Sorting an Array
  • Multi-Dimensional Arrays
  • Example
  • Creating a new Multi-Dimensional Array

Course Contents - DAY 3

Session 7: PHP FUNCTIONS

  • Conditionally Created Functions
  • Functions Created Inside Functions
  • Argument Passing by Value
  • Argument Passing by Reference
  • Returning Values
  • Including External PHP Functions

Session 8: PHP OBJECT ORIENTED

  • Classes and Inheritance
  • Classes
  • Inheritance
  • Keywords

Session 9: PHP & PEAR

  • What is PEAR?
  • Command Line Package Installer
  • Fully-Automatic Installation
  • Semi-Automatic Installation
  • What is PECL?

Session 10: PHP & HTML

  • HTML/PHP Examples

Related Courses

Privacy Notice

In order to provide you with the service requested we will need to retain and use your contact information in accordance with our Privacy Notice. If you choose to provide us with this information you explicitly consent to us using the information as necessary to provide the requested service to you. If you do not agree please do not proceed to request the service from us.

Marketing Permissions

Would you like to receive our newsletter and other information on products and services which we think will be of interest to you by email. We will always treat your information with care and in accordance with our Privacy Notice. You are free to withdraw this permission at any time.

 

We work with the best