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.58 tracks/php/exercises/isogram/example.php
trackler-2.2.1.57 tracks/php/exercises/isogram/example.php
trackler-2.2.1.56 tracks/php/exercises/isogram/example.php
trackler-2.2.1.55 tracks/php/exercises/isogram/example.php
trackler-2.2.1.54 tracks/php/exercises/isogram/example.php
trackler-2.2.1.53 tracks/php/exercises/isogram/example.php
trackler-2.2.1.52 tracks/php/exercises/isogram/example.php
trackler-2.2.1.51 tracks/php/exercises/isogram/example.php
trackler-2.2.1.50 tracks/php/exercises/isogram/example.php
trackler-2.2.1.49 tracks/php/exercises/isogram/example.php
trackler-2.2.1.48 tracks/php/exercises/isogram/example.php
trackler-2.2.1.47 tracks/php/exercises/isogram/example.php
trackler-2.2.1.46 tracks/php/exercises/isogram/example.php
trackler-2.2.1.45 tracks/php/exercises/isogram/example.php
trackler-2.2.1.44 tracks/php/exercises/isogram/example.php
trackler-2.2.1.43 tracks/php/exercises/isogram/example.php
trackler-2.2.1.42 tracks/php/exercises/isogram/example.php
trackler-2.2.1.41 tracks/php/exercises/isogram/example.php
trackler-2.2.1.40 tracks/php/exercises/isogram/example.php
trackler-2.2.1.39 tracks/php/exercises/isogram/example.php