I've a few functions which either take an array with named keys as a parameter or return an array of named keys, whats the recommended way to handle these with PHPDoc? The manual for PHPDoc only shows "@ array $arrayname"
I don't know what the "preferred" way is, but I typically list the keys after the variable name:
/** * @param array $arrayname (id, name, foo, bar[, etc....]) */