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.78 tracks/php/exercises/isogram/example.php
trackler-2.2.1.77 tracks/php/exercises/isogram/example.php
trackler-2.2.1.76 tracks/php/exercises/isogram/example.php
trackler-2.2.1.75 tracks/php/exercises/isogram/example.php
trackler-2.2.1.74 tracks/php/exercises/isogram/example.php
trackler-2.2.1.73 tracks/php/exercises/isogram/example.php
trackler-2.2.1.72 tracks/php/exercises/isogram/example.php
trackler-2.2.1.71 tracks/php/exercises/isogram/example.php
trackler-2.2.1.70 tracks/php/exercises/isogram/example.php
trackler-2.2.1.69 tracks/php/exercises/isogram/example.php
trackler-2.2.1.68 tracks/php/exercises/isogram/example.php
trackler-2.2.1.67 tracks/php/exercises/isogram/example.php
trackler-2.2.1.66 tracks/php/exercises/isogram/example.php
trackler-2.2.1.65 tracks/php/exercises/isogram/example.php
trackler-2.2.1.64 tracks/php/exercises/isogram/example.php
trackler-2.2.1.63 tracks/php/exercises/isogram/example.php
trackler-2.2.1.62 tracks/php/exercises/isogram/example.php
trackler-2.2.1.61 tracks/php/exercises/isogram/example.php
trackler-2.2.1.60 tracks/php/exercises/isogram/example.php
trackler-2.2.1.59 tracks/php/exercises/isogram/example.php