Validate::sanitize_array_remove_empty( null|array $value = null )
Description #
Remove empty array items.
Parameters #
- $valuenull | array (Optional) Array to sanitize. Default value: null
Source #
File: lib/class-validate.php
public static function sanitize_array_remove_empty( $value = null ) { if ( null !== $value && is_array( $value ) ) { return array_filter( $value ); } }
Expand full source code Collapse full source code View on GitHub: lib/class-validate.php:67
Add your comment