Revert "Refactored php array"

This reverts commit 19bcdd61a4896a1a671da225cd6fa24fd642c169.