<?php function sanitizeFilename(string $name): string { return preg_replace( ['/ +/', '/\W+/'], ['_', ''], $name ); } echo sanitizeFilename('This/has a Gap !n 1t');
You have javascript disabled. You will not be able to edit any code.