File "string.php"
Full Path: /home/jlklyejr/public_html/wp-content-20241030122153/plugins/meta-box/inc/helpers/string.php
File size: 275 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* String helper functions.
*/
class RWMB_Helpers_String {
public static function title_case( string $text ) : string {
$text = str_replace( [ '-', '_' ], ' ', $text );
$text = ucwords( $text );
$text = str_replace( ' ', '_', $text );
return $text;
}
}