Unexpected T function error in wordpress code
<p>Hi I keep getting an Unexpected T_function error on the last line when i run the below code on a webserver running php 5.2, this runs fine on my local machine running php 5.3.6</p>

<p>

<pre><code> // ***** Declare function that buids the post type
 function add_post_type($name, $args = array() ) {
    add_action('init',function() use($name, $args) {
</code></pre>

<p>can somebody help me spot whats wrong?</p>
