My code runs perfectly on localhost.. But when I sent it to web, I get this error:
PHP Parse error: parse error in E:\home\site\Web\sw\class\sql.php on line 60
Here is the line 60:
        if($caractere) {
            $code = preg_replace_callback(
               "/(SW_(\w+))/",
               function($matches) use ($line) { //THIS IS THE LINE 60
                    return utf8_encode($line[$matches[2]]);
               },
               $codigoHtmlDeRetorno
            );
            echo $codigo;
        }
I really can't understand! Where is the fault?
