• Home Page
  • BFH courses
  • Other courses
  • BFH Courses
  • CS Basics (MedInf)
  • Web Security
  • Computer Science Basics
  • Operating System

PHP syntax: examples

Download examples: basics.zip

Basic types

  • Hello World (source)
  • Write functions (source)
  • Variables do not need to be initialized (source)
  • Variable can hold values of different types (source)
  • Strings (source)
  • Strings initialized using Here Doc (source)
  • Numerical arrays (source)
  • Associative arrays (source)
  • Mixed array (source)
  • For Loop for a numeric array (source)

Control structures

  • Conditional (source)
  • Loops (source)
  • Foreach (source)
  • Foreach - two dimension array (source)
  • Isset (source)

Related Pages

  • Home
  • Slides
  • Examples
  • Exercices
  • Resources

Contact

Prof. Dr. Emmanuel Benoist
Berner Fachhochschule - TI
Quellgasse 21
CH-2501 Biel/Bienne
Switzerland
Mail: emmanuel.benoist (at) bfh.ch

Social Networks

Follow me on
Linkedin, Scholar & Research gate

http://www.ti.bfh.ch/

BACK TO TOP © 2014-2021 Emmanuel Benoist