Code - Star Wars Name

The purportedly official formula for converting human names to Star Wars character names.

Demo
 

Privacy Notice: your personal information is not stored.

Source Code
ASP
  1. function starwarsname(firstName, lastName, maidenName, city)
  2.     starwarsname = Left(firstName, 3) & LCase(Left(lastName, 2)) & " " & Left(maidenName, 2) & LCase(Left(city, 3))
  3. end function
PHP
  1. function starwarsname($firstName, $lastName, $maidenName, $city)
  2. {
  3.     return substr($firstName, 0, 3) . strtolower(substr($lastName, 0, 2)) . " " . substr($maidenName, 0, 2) . strtolower(substr($city, 0, 3));
  4. }