public removeExtensions ( string $extension = null ) | ||
$extension | string |
public function removeExtensions($extension = null)
{
if (is_null($extension)) {
$this->extensions = [];
} else {
$offset = array_search($extension, $this->extensions);
if ($offset !== false) {
unset($this->extensions[$offset]);
}
}
}