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.159 tracks/php/exercises/isogram/example.php
trackler-2.2.1.158 tracks/php/exercises/isogram/example.php
trackler-2.2.1.157 tracks/php/exercises/isogram/example.php
trackler-2.2.1.156 tracks/php/exercises/isogram/example.php
trackler-2.2.1.155 tracks/php/exercises/isogram/example.php
trackler-2.2.1.154 tracks/php/exercises/isogram/example.php
trackler-2.2.1.153 tracks/php/exercises/isogram/example.php
trackler-2.2.1.152 tracks/php/exercises/isogram/example.php
trackler-2.2.1.151 tracks/php/exercises/isogram/example.php
trackler-2.2.1.150 tracks/php/exercises/isogram/example.php
trackler-2.2.1.149 tracks/php/exercises/isogram/example.php
trackler-2.2.1.148 tracks/php/exercises/isogram/example.php
trackler-2.2.1.147 tracks/php/exercises/isogram/example.php
trackler-2.2.1.146 tracks/php/exercises/isogram/example.php
trackler-2.2.1.145 tracks/php/exercises/isogram/example.php
trackler-2.2.1.144 tracks/php/exercises/isogram/example.php
trackler-2.2.1.143 tracks/php/exercises/isogram/example.php
trackler-2.2.1.142 tracks/php/exercises/isogram/example.php
trackler-2.2.1.141 tracks/php/exercises/isogram/example.php
trackler-2.2.1.140 tracks/php/exercises/isogram/example.php