public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/functions.php
/**
 * Safe method to get the value from an array using the specified key.
 *
 * @since 1.0.0
 *
 * @param array  $array The array to search.
 * @param string $key The key to use to index the array.
 * @param mixed  $returnDefault Return this value if the value is not found.
 *
 * @return string The array value.
 */
Safe method to get the value from an array using the specified key.



@return string The array value.
Safe method to get the value from an array using the specified key . @return string The array value .
function WPCW_arrays_getValue( $array, $key, $returnDefault = false ) {
	if ( $array && isset( $array[ $key ] ) ) {
		return $array[ $key ];
	}
	return $returnDefault;
}
function WPCW_arrays_getValue ( $ array , $ key , $ returnDefault = false ) { if ( $ array && isset ( $ array [ $ key ] ) ) { return $ array [ $ key ] ; } return $ returnDefault ; }
Safe method to get the value from an array using the specified key.
Safe method to get the value from an array using the specified key .