Skip to main content

clean_extensions()

public static function clean_extensions( $extensions )

Returns an array of 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:4069

Parameters

NameTypeDefaultDescription
$extensionsarray | stringThe file extensions to be cleaned.

Returns

  • array