edited for php syntax highlighting