Beispiel #1
0
/**
 * Reuses the same singleton instance of `PowerString` to wrap the given string.
 *
 * This has increased performance, but it should be used with care.
 * @param string $str Variable.
 * @return PowerString
 */
function asPS(&$str)
{
    return PowerString::on($str);
}