Home  >  Article  >  Backend Development  >  php写pkcs5报错解决办法

php写pkcs5报错解决办法

WBOY
WBOYOriginal
2016-06-13 11:33:181630browse

php写pkcs5报错
这是代码:

function pkcs5_pad ($text, $blocksize)<br />	{		<br />		$pad = $blocksize – (strlen($text) % $blocksize);<br />		return $text . str_repeat(chr($pad), $pad);<br />	}


报错:Parse error: syntax error, unexpected T_STRING

报错的句子是:$pad = $blocksize – (strlen($text) % $blocksize);

什么原因啊?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn