Converting code with Anonymous functions to PHP 5.2
问题 I have some PHP 5.3 code which builds an array to be passed to a view. This is the code I have. # Select all this users links. $data = $this->link_model->select_user_id($this->user->id); if (count($data) > 0) { # Process the data into the table format. $table = array ( 'properties' => array ( 'delete_link_column' => 0, ), 'callbacks' => array ( # Callback for the name link. function($value) { return sprintf('<a href="/links/view/name/%s">%s</a>', $value, $value); }, # Callback for the