I use several associative arrays in my PHP application and I\'m using PHP documentor to comment my sources. I never really did specify comments for the arrays in an array, b
You can't document each key, but you can tell phpDocumentor what type it is.
You could do something like this:
/** * Form the array like this: * * $array = array( * 'id' => 'foo', // the id * 'class' => 'myClass', // the class * ); * * * * @var array[string]string */ $array;
* $array = array( * 'id' => 'foo', // the id * 'class' => 'myClass', // the class * ); * *