This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Returns initial letters of all words from all arguments. | |
* | |
* @param $string $str,... | |
* @return string | |
* @example initials('Johann Sebastian', 'Bach') => 'JSB'. | |
*/ | |
function initials() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Converts string to SEO-friendly form (lowercase hyphenated alphanumeric words) | |
* | |
* @param $string | |
* @return string | |
*/ | |
function seoUrl($string) | |
{ |
NewerOlder