Parse error: syntax error, unexpected [closed]

0

Hello, follow the mistake if you can give me a hand!

   Parse error: syntax error, unexpected 

       $limite = 5;
       $page_atual = !preg_replace('/[^0-9]+',',$_GET['var1']');

error:

     Parse error: syntax error, unexpected '$_GET' (T_VARIABLE) in /home/sisv2/sis_adm/version/abcvp/includes/cursoseventos.inc.php on line 121
    
asked by anonymous 20.03.2015 / 02:33

1 answer

0

You have a% wt% more in the middle and the end. Which of the options do you want?

$page_atual = !preg_replace('/[^0-9]+\',',$_GET['var1']);

Or (makes more sense):

$page_atual = !preg_replace('/[^0-9]+',$_GET['var1']);
    
20.03.2015 / 02:37