Skip to content

codecalm/odmiana-imion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

odmiana-imion

$regexes = json_decode(file_get_contents('regexes.json'));

function replace_name($name) {
   global $regexes;

   foreach ($regexes as $from => $to) {
      if(preg_match('/'.$from.'/i', $name)) {
         return preg_replace('/'.$from.'/i', $to, $name);
      }
   }

   return $name;
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published