Jump to content
  • 0

pomoc odstranení háčků,čárek a mezer u upl souboru


Red beanie

Dotaz

cawec tak znova dělám na uplňe new upload scriptu a bohužel jsem ještě nezjistil jak mám v php udělat že když souboru neni v diakritice a má mezery tak se přejmenuje do určitého formatu PŘ: škubánky ala.txt tak se přejmenuje na skubanky_ala.txt nevie někdo o tomto scriptu ???

Link to comment
Share on other sites

3 odpovědí na tuto otázku

Recommended Posts

  • 0

udělej si funkci

 

 

function TextFormatuj($text)
{
 str_replace("ě", "e", $text);
 str_replace("š", "s", $text);
 str_replace("č", "c", $text);
 str_replace("ř", "r", $text);
 str_replace("ž", "z", $text);
 str_replace("ý", "y", $text);
 str_replace("á", "a", $text);
// atd....
 return $text;
}

 

mezery můžeš odsranit rovněž tak ale že daž např.

 

  str_replace(" ", "_", $text);

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...