1
Issues / Re: Fatal error: Cannot redeclare str_contains()
Hello
I am receiving this error when trying to publish first project.
thank you
Fatal error: Cannot redeclare str_contains() in C:\xampp\htdocs\edgeestimate\helpers\Functions.php on line 524
/**
* returns true if $needle is a substring of $haystack
* @return bool
*/
function str_contains($needle, $haystack)
{Hello
I am receiving this error when trying to publish first project.
thank you
Fatal error: Cannot redeclare str_contains() in C:\xampp\htdocs\edgeestimate\helpers\Functions.php on line 524
/**
* returns true if $needle is a substring of $haystack
* @return bool
*/
function str_contains($needle, $haystack)
{
return strpos($haystack, $needle) !== false;
}
return strpos($haystack, $needle) !== false;
}[/color]
Yep I have the same with my first project a minute ago. Searched for duplicates in other php-files but nothing.
Who can help ?