I am currently replacing spaces with an underscore during an image upload.
How can I also include it so it changes & to “and”.
$newname = str_replace( ' ', '_', trim( strip_tags( $_POST['name'] ) ) ) . _ . $formKey->generateKey() . '_' . time() . '.jpg';
Kind of stuck with this one and don’t know what to even attempt..
$newname = str_replace(array(' ', '&'), array('_', 'and'), ... );