✨feature: Add contract features to dashboard page
This commit is contained in:
20
lib/functions.php
Normal file
20
lib/functions.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* Spacetraders utility functions.
|
||||
*
|
||||
* @package SpacetradersAPI
|
||||
* @author Keith Solomon <keith@keithsolomon.net>
|
||||
* @license MIT License
|
||||
* @version GIT: <git_id>
|
||||
* @link https://git.keithsolomon.net/keith/Spacetraders
|
||||
*/
|
||||
|
||||
/**
|
||||
* Formats a string by replacing underscores with spaces and capitalizing the first letter.
|
||||
*
|
||||
* @param string $str The string to format.
|
||||
* @return string The formatted string.
|
||||
*/
|
||||
function formatString( $str ) {
|
||||
return ucfirst( strtolower( str_replace( '_', ' ', $str ) ) );
|
||||
}
|
||||
Reference in New Issue
Block a user