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.38 tracks/php/exercises/isogram/example.php
trackler-2.2.1.37 tracks/php/exercises/isogram/example.php
trackler-2.2.1.36 tracks/php/exercises/isogram/example.php
trackler-2.2.1.35 tracks/php/exercises/isogram/example.php
trackler-2.2.1.34 tracks/php/exercises/isogram/example.php
trackler-2.2.1.33 tracks/php/exercises/isogram/example.php
trackler-2.2.1.32 tracks/php/exercises/isogram/example.php
trackler-2.2.1.31 tracks/php/exercises/isogram/example.php
trackler-2.2.1.30 tracks/php/exercises/isogram/example.php
trackler-2.2.1.29 tracks/php/exercises/isogram/example.php
trackler-2.2.1.28 tracks/php/exercises/isogram/example.php
trackler-2.2.1.27 tracks/php/exercises/isogram/example.php
trackler-2.2.1.26 tracks/php/exercises/isogram/example.php
trackler-2.2.1.25 tracks/php/exercises/isogram/example.php
trackler-2.2.1.24 tracks/php/exercises/isogram/example.php
trackler-2.2.1.23 tracks/php/exercises/isogram/example.php
trackler-2.2.1.22 tracks/php/exercises/isogram/example.php
trackler-2.2.1.21 tracks/php/exercises/isogram/example.php
trackler-2.2.1.20 tracks/php/exercises/isogram/example.php
trackler-2.2.1.19 tracks/php/exercises/isogram/example.php