When writing a PHP document for a function, if the function returns a value, you should write something like
@return array $someArray An array of formatted dates
But let's say that my function does not return a value, but rather changes the original value, which is passed as a link, for example:
function formatDates(&$input_arr){
array_walk_recursive($input_arr, 'formatDateFunction');
}
This function modifies the input array.
I know this with help &in front of the parameter, but the return values are pretty obvious with the help returnin front of them, so I feel there might be a standard for this?
Currently, I just mention it in the function description, for example:
Is there a commonly used way to declare a function to change an input value in PHP documents? Or is it just normal, as implied?