You appear to be a bot. Output may be restricted
Description
Return the result of adding $amount to $array[$index1][$index2]Example: bw_array_add2( $downloads, $themes, $versions, $download );
Usage
bw_array_add2( $array, $index, $index2, $amount );
Parameters
- $array
- ( mixed ) required –
- $index
- ( mixed ) required –
- $index2
- ( mixed ) required –
- $amount
- ( mixed ) required –
Returns
voidSource
File name: oik-themes/admin/oik-themes.phpLines:
1 to 9 of 9
function bw_array_add2( &$array, $index, $index2, $amount ) { $amount = intval( $amount ); if ( ! isset($array[$index][$index2]) ) { $value = $amount; } else { $value = $array[$index][$index2] + $amount; } return( $value ); }View on GitHub