Removing closing PHP tags, implied array initialisations and special cha...

...racter escaping on inputs. See thread on forum with more details

Signed-off-by: Euan Torano <euantorano@gmail.com>