Funktion läuft nicht

Alles, was PHP betrifft, kann hier besprochen werden.

Funktion läuft nicht

Postby cracker1981 » 13. April 2005 14:31

Kann mir jemand sagen,was ich verkehrt gemacht habe.

Code: Select all
function antispam_email($mail)
{
$encoded=' ';
for($i=0;$i<strlen($mail);$i++)
   {$encoded .= '&#'.ord($mail[$i].' ; ';};
return $encoded;
};

Es taucht die Fehlermeldung "unexpected ';' in zeile 5" auf
cracker1981
 
Posts: 34
Joined: 11. January 2005 12:07

Postby Wiedmann » 13. April 2005 14:50

Eine Klammer die man aufmacht "(", muss man auch wieder zumachen ")".
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to PHP

Who is online

Users browsing this forum: No registered users and 16 guests