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.0.5 tracks/php/exercises/isogram/example.php
trackler-2.2.0.4 tracks/php/exercises/isogram/example.php
trackler-2.2.0.3 tracks/php/exercises/isogram/example.php
trackler-2.2.0.2 tracks/php/exercises/isogram/example.php
trackler-2.2.0.1 tracks/php/exercises/isogram/example.php
trackler-2.2.0.0 tracks/php/exercises/isogram/example.php
trackler-2.1.0.55 tracks/php/exercises/isogram/example.php
trackler-2.1.0.54 tracks/php/exercises/isogram/example.php
trackler-2.1.0.53 tracks/php/exercises/isogram/example.php
trackler-2.1.0.52 tracks/php/exercises/isogram/example.php
trackler-2.1.0.51 tracks/php/exercises/isogram/example.php
trackler-2.1.0.50 tracks/php/exercises/isogram/example.php
trackler-2.1.0.49 tracks/php/exercises/isogram/example.php
trackler-2.1.0.48 tracks/php/exercises/isogram/example.php
trackler-2.1.0.47 tracks/php/exercises/isogram/example.php
trackler-2.1.0.46 tracks/php/exercises/isogram/example.php
trackler-2.1.0.45 tracks/php/exercises/isogram/example.php
trackler-2.1.0.44 tracks/php/exercises/isogram/example.php
trackler-2.1.0.43 tracks/php/exercises/isogram/example.php
trackler-2.1.0.42 tracks/php/exercises/isogram/example.php