Untitled

Anonymous
php
06/30/2022 12:56 PM
400 B
20
Indexable
<!-- Haz que si un fichero termina en ".exe" se crea en MAYUS, y si termina en ".db" se crea en minus -->

<?php

$nombre = $_GET["name"];

if(str_ends_with($nombre, ".exe")){
    echo strtoupper ($nombre);
} elseif (str_ends_with($nombre, ".db")) {
    echo strtolower ($nombre);
}

?>
Editor is loading...