.
function is_valid_isbn($isbn)
{
$isbn_length = strlen($isbn);
$isbn_sum = 0;
echo "this is the length :";
echo $isbn_length;
for($i=0; $i < $isbn_length; $i++) { $total += (substr($isbn, $i, 1) * (11-($i+1))); }
return true;
}
When i run this function i am getting following error can some one help me where is the err ??
Here is the error message
Parse error: parse error, expecting `';'' in C:\xampp\htdocs\gbload\application\libraries\Isbnconv.php on line 47