keboola/php-utils

View on GitHub
src/Keboola/Utils/toAscii.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Keboola\Utils;

use Keboola\Utils\Sanitizer\ColumnNameSanitizer;

/**
 * https://github.com/nette/nette/blob/master/Nette/Utils/Strings.php#L167
 * Converts to ASCII.
 * @param  string  UTF-8 encoding
 * @return string  ASCII
 */
function toAscii($s)
{
    return ColumnNameSanitizer::toAscii($s);
}