Skip to main content

clean_extensions()

public static function clean_extensions( $extensions )

Returns a reindexed array of lowercase, nonempty file extensions with periods and spaces removed.

Since:

  • unknown
  • 2.9.18 (Updated to support being passed a string of comma separated extensions.)

Source: common.php:4156

Parameters​

NameTypeDefaultDescription
$extensionsarray | stringThe file extensions to be cleaned.

Returns​

  • array