stk2k/xstring

View on GitHub
src/globals/functions.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
declare(strict_types=1);

namespace stk2k\xstring\globals;

use function function_exists;

use stk2k\xstring\xString;

if (!function_exists('s')){
    function s(?string $s = '', string $encoding = xString::DEFAULT_ENCODING) : xString
    {
        return new xString($s, $encoding);
    }
}