Skip to main content
Topic: Fatal error: Cannot redeclare str_contains() (Read 2171 times) previous topic - next topic

Fatal error: Cannot redeclare str_contains()

Hello
On my first launch of PHPRad, I am receiving the following error when trying to preview the webpages.

Fatal error: Cannot redeclare str_contains() in C:\xampp\htdocs\project2\helpers\Functions.php on line 524
__________________________________________________________________________________________________________________
function str_contains($needle, $haystack)
{
   return strpos($haystack, $needle) !== false;
}

thank you