fix export to php array bug

Signed-off-by: Damien Labat