Parse error: syntax error, Unexpected

Asked

Viewed 42 times

0

Hello, follow the error if you can help me !

   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

1 answer

0


You have a ' the most in the middle and at the end. Which of the options you want?

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

Or (makes more sense):

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.