name descrambler php
<p>Hi I have a list of persons names, with the letters scrambled and in all lowercase. In some cases there is a space denoting a first name and a last name. In other cases it is a single text string with no space (first and last names have been mashed together)</p>

<p>I have a list of the unscrambled names (both first and last names) to compare the scrambled names to. </p>

<p>What is your solution to match all the scrambled names to the unscrambled names?</p>

<p>Edit: this is amazingly not homework</p>

<p>Example 1: 
scrambled = jodohne
Unscrambled = John doe</p>

<p>Example2: 
scrambled = ajne eod
Unscrambled = Jane Doe</p>
