Sha256: 64ceaac0a446d4b31caa4d9067e723667bdae939b532c42a4e7e49d001956abb

Contents?: true

Size: 236 Bytes

Versions: 396

Compression:

Stored size: 236 Bytes

Contents

<?php

function isIsogram($string)
{
    $string = str_replace(['-', ' '], '', mb_strtolower($string));
    $letters = preg_split('//u', $string, -1, PREG_SPLIT_NO_EMPTY);
    return count($letters) === count(array_unique($letters));
}

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.98 tracks/php/exercises/isogram/example.php
trackler-2.2.1.97 tracks/php/exercises/isogram/example.php
trackler-2.2.1.96 tracks/php/exercises/isogram/example.php
trackler-2.2.1.95 tracks/php/exercises/isogram/example.php
trackler-2.2.1.94 tracks/php/exercises/isogram/example.php
trackler-2.2.1.93 tracks/php/exercises/isogram/example.php
trackler-2.2.1.92 tracks/php/exercises/isogram/example.php
trackler-2.2.1.91 tracks/php/exercises/isogram/example.php
trackler-2.2.1.90 tracks/php/exercises/isogram/example.php
trackler-2.2.1.89 tracks/php/exercises/isogram/example.php
trackler-2.2.1.88 tracks/php/exercises/isogram/example.php
trackler-2.2.1.87 tracks/php/exercises/isogram/example.php
trackler-2.2.1.86 tracks/php/exercises/isogram/example.php
trackler-2.2.1.85 tracks/php/exercises/isogram/example.php
trackler-2.2.1.84 tracks/php/exercises/isogram/example.php
trackler-2.2.1.83 tracks/php/exercises/isogram/example.php
trackler-2.2.1.82 tracks/php/exercises/isogram/example.php
trackler-2.2.1.81 tracks/php/exercises/isogram/example.php
trackler-2.2.1.80 tracks/php/exercises/isogram/example.php
trackler-2.2.1.79 tracks/php/exercises/isogram/example.php