php写pkcs5报错这是代码:function pkcs5_pad ($text, $blocksize) { $pad = $blocksize – (strlen($text) % $blocksize); return $text . str_repeat(chr($pad), $pad); }报错:Parse error: syntax error, unexpected T_STRING报错的句子是:$pad = $blocksize – (strlen($text) % $blocksize);什么原因啊? 分享到: ------解决方案--------------------有非法字符function pkcs5_pad($text, $blocksize){ $pad = $blocksize - (strlen($text) % $blocksize); return $text . str_repeat(chr($pad), $pad);}