You appear to be a bot. Output may be restricted
Description
Increment a value in an array
Usage
bw_array_inc( $array, $index );
Parameters
- $array
- ( array ) required – the array to change
- $index
- ( string ) required – the key of the value to increment
Returns
voidSource
File name: oik-bwtrace/includes/bwtrace.phpLines:
1 to 10 of 10
function bw_array_inc( &$array, $index ) { if ( !isset($array) ) { $array = array(); } if ( !isset( $array[$index] ) ) { $array[$index] = 1; } else { ++$array[$index]; } }View on GitHub View on Trac