- chr: documentation ( source)
- var_export: documentation ( source)
- count_chars: documentation ( source)
<?php
$string = 'abclkjabc';
$notRepeated = [];
foreach (count_chars($string, 1) as $char => $count) {
if ($count === 1) {
$notRepeated[] = chr($char);
}
}
var_export($notRepeated);
echo "\nCount = " . count($notRepeated);