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 a string. Useful functions in slug | |
* | |
* @param string $string The input string | |
* @param string $mode OPTIONAL Conversion Formats: Lower (Everything to lowercase), Upper (Everything to uppercase) | |
* @return string | |
* | |
* */ | |
function normalize($string, $mode = null) |
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 | |
/** | |
* Makes converting with date/datetime (BR <=> U.S.) | |
* | |
* @param string $value The date or datetime | |
* @param string $type Format types: datetime, date, time | |
* @return string | |
* | |
* */ | |
function swapDatetime($value, $type = 'datetime') |
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 | |
/** | |
* getFullName () | |
* | |
* This function converts a full name for UTF-8 ignoring certain prepositions. | |
* | |
* @author Giovanni Ramos | |
* | |
* @param string $fullName | |
* @return string |
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 | |
/** | |
* createColsOf () | |
* | |
* Function that generates a list, with their surround option, by columns argument. | |
* | |
* @author Giovanni Ramos | |
* @todo add more options. | |
* | |
* @param array $vars |
NewerOlder