String and Character Functions

String Functions Character Functions
String Functions

SimilarNames.php

This script uses the levenshtein() and similar_text() functions to determine which of the signs of the Chinese zodiac have the most similar names.

[Test the Script] [View the Source Code]
Character Functions

EmbeddedWords.php

This script counts the number of times each letter appears in a string and compares that count to the number of times each letter appears in the names of the Chinese zodiac signs to determine if the name can be made from the characters in the string.

[Test the Script] [View the Source Code]