Reverse order of years
<p>I am trying to implement the array_reverse function into this foreach array, I believe I'm calling the wrong variables in line 3(well, 4)</p>

<pre><code>&lt;?php
    $j=1;
    $skill_slugs = array_reverse( $skill_slugs );

    foreach ($skills as $skill) {               
        $skill = get_term_by( 'slug', trim(htmlentities($skill)), 'skill');
        if($skill) {
            $skill_slug = $skill-&gt;slug;             
            $skill_slugs .= $skill_slug . ",";
            $a = '&lt;li&gt;&lt;a href="#" data-filter=".'.$skill_slug.'"&gt;';
            $a .= $skill-&gt;name;                 
            $a .= '&lt;/a&gt;&lt;/li&gt;';
            echo $a;
            echo "\n";
            $j++;
        }         
    }
?&gt;
</code></pre>
