need help converting anonymous usort function
<p>I recently started hosting a website on 000webhost which doesn't support PHP 5.3 and kept getting the unexpected T_FUNCTION error at the first usort function in this file.</p>

<pre><code>&lt;?php
    $cityXML = simplexml_load_file("http://build.uitdatabank.be/lib/1.2/city.xml");
    $regionXML = simplexml_load_file("http://build.uitdatabank.be/lib/1.2/region.xml");
    $headingXML = simplexml_load_file("http://build.uitdatabank.be/lib/1.2/heading.xml");
    $cities = array();
    foreach($cityXML-&gt;city as $city)
    {
        $cities[]=$city;
    }
    usort($cities, function($a, $b)
    {
        return strcmp($a['city'], $b['city']);
    });
    $regions = array();
    foreach($regionXML-&gt;region as $region)
    {
        $regions[]=$region;
    }
    usort($regions, function($a, $b)
    {
        return strcmp($a['title'], $b['title']);
    });
    $headings = array();
    foreach($headingXML-&gt;heading as $heading)
    {
        $headings[]=$heading;
    }
    usort($headings, function($a, $b)
    {
        return strcmp($a['title'], $b['title']);
    });
?&gt;
</code></pre>

<p>I believe it's something to do with the fact that this is an anonymous function and therefore doesn't run on an older version of PHP.</p>

<p>I've looked into using create_function() to help convert it but can't for the life of me figure out how to do it. Can you guys help?</p>
