added improved php syntax