我正在尝试从字符串中获取动态值。但没有任何表现。
ob_start();
var_dump($torrent->result['info']['pieces']);
$pieces = ob_get_clean();
$piecescorrected = explode($pieces, 'string(*)');
echo $piecescorrected;`
这是怎么回事?
编辑: 一些澄清。 $ pieces需要从其后的所有其他随机字符中过滤掉。 $ pieces的输出:
string(12620) "< ÏÚÿÊܵ䬧âW—µ-‘CÄÞ½§§¼ø0LØëÍI×L —@c õL2“iÓ¹ý¼Bl'-“’4žþÊYï‡
现在需要通过过滤string(12620)
来纠正$件
但价值是动态的,因此我使用了$piecescorrected = explode($pieces, 'string(*)');
注意字符串(*)