fix export to php array bug

Signed-off-by: Damien Labat <contact@damienlabat.fr>