Jump to content

Cannot Redclare Function


Unholy Prayer

Recommended Posts

Ok, I'm getting an error with this function and I don't know why.  This is the error message that I'm getting:
[quote]Fatal error: Cannot redeclare clean() (previously declared in /home/dev/public_html/portal/functions.php:9) in /home/dev/public_html/portal/functions.php on line 9[/quote]

These are the contents of functions.php:
[code]
<?php

function clean($string) {

$string = addslashes($string);

$string = strip_tags($string);

$string = htmlspecialchars($string);

$string = trim($string);

return $string;

}

?> [/code]

Can someone please help me?
Link to comment
https://forums.phpfreaks.com/topic/30152-cannot-redclare-function/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.