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.18 tracks/php/exercises/isogram/example.php
trackler-2.2.1.17 tracks/php/exercises/isogram/example.php
trackler-2.2.1.16 tracks/php/exercises/isogram/example.php
trackler-2.2.1.15 tracks/php/exercises/isogram/example.php
trackler-2.2.1.14 tracks/php/exercises/isogram/example.php
trackler-2.2.1.13 tracks/php/exercises/isogram/example.php
trackler-2.2.1.12 tracks/php/exercises/isogram/example.php
trackler-2.2.1.11 tracks/php/exercises/isogram/example.php
trackler-2.2.1.10 tracks/php/exercises/isogram/example.php
trackler-2.2.1.9 tracks/php/exercises/isogram/example.php
trackler-2.2.1.8 tracks/php/exercises/isogram/example.php
trackler-2.2.1.7 tracks/php/exercises/isogram/example.php
trackler-2.2.1.6 tracks/php/exercises/isogram/example.php
trackler-2.2.1.5 tracks/php/exercises/isogram/example.php
trackler-2.2.1.4 tracks/php/exercises/isogram/example.php
trackler-2.2.1.3 tracks/php/exercises/isogram/example.php
trackler-2.2.1.2 tracks/php/exercises/isogram/example.php
trackler-2.2.1.1 tracks/php/exercises/isogram/example.php
trackler-2.2.1.0 tracks/php/exercises/isogram/example.php
trackler-2.2.0.6 tracks/php/exercises/isogram/example.php