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.180 tracks/php/exercises/isogram/example.php
trackler-2.2.1.179 tracks/php/exercises/isogram/example.php
trackler-2.2.1.178 tracks/php/exercises/isogram/example.php
trackler-2.2.1.177 tracks/php/exercises/isogram/example.php
trackler-2.2.1.176 tracks/php/exercises/isogram/example.php
trackler-2.2.1.175 tracks/php/exercises/isogram/example.php
trackler-2.2.1.174 tracks/php/exercises/isogram/example.php
trackler-2.2.1.173 tracks/php/exercises/isogram/example.php
trackler-2.2.1.172 tracks/php/exercises/isogram/example.php
trackler-2.2.1.171 tracks/php/exercises/isogram/example.php
trackler-2.2.1.170 tracks/php/exercises/isogram/example.php
trackler-2.2.1.169 tracks/php/exercises/isogram/example.php
trackler-2.2.1.167 tracks/php/exercises/isogram/example.php
trackler-2.2.1.166 tracks/php/exercises/isogram/example.php
trackler-2.2.1.165 tracks/php/exercises/isogram/example.php
trackler-2.2.1.164 tracks/php/exercises/isogram/example.php
trackler-2.2.1.163 tracks/php/exercises/isogram/example.php
trackler-2.2.1.162 tracks/php/exercises/isogram/example.php
trackler-2.2.1.161 tracks/php/exercises/isogram/example.php
trackler-2.2.1.160 tracks/php/exercises/isogram/example.php