An introduction to PHP with examples