Published in: PHP
URL: http://reusablecode.blogspot.com/2008/03/finding-your-star-wars-name.html
<?php /* Copyright (c) 2008, reusablecode.blogspot.com; some rights reserved. This work is licensed under the Creative Commons Attribution License. To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0/ or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA. */ function starwarsname($firstName, $lastName, $maidenName, $city) { return substr($firstName, 0, 3) . strtolower(substr($lastName, 0, 2)) . " " . substr($maidenName, 0, 2) . strtolower(substr($city, 0, 3)); } ?>
You need to login to post a comment.
