added array_unique for php files