I\'m trying to use the eval function for php. but I\'m stuck in handling the parse error. like considering if I have edge cases like 1.. or 1++ if gives me parse error:synta
$response = @eval($string); if (error_get_last()){ echo 'Show your custom error message'; //Or you can print_r(error_get_last()); }