I am trying to use the strlen method to get the lenght of a string but it gives me this error:

Fatal error: Call to undefined function: () in c:\apache\htdocs\submitmeth.php on line 36

the function

function strlim ($word)
{
	$len = $strlen($word);
	if($len > 200)
	{
		echo "too long";
	}
}

im sort of lost as to what to do...

    $len = $strlen$word);

    huh?

    $len = strlen($word); 

      oops thats a typo... its not like that in the code.

        omg... never retype code, always copy and paste. please. it helps.

        and might i suggest you recheck your code? if it is like that that would cause the problem...

          Write a Reply...