- Output for 7.4.0 - 7.4.33, 8.0.1 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.26, 8.4.1 - 8.4.13
- Array ( [0] => x-archive-guessed-charset: windows-1251 [1] => windows-1251 ) windows-1251
<?php
preg_match('/x-archive-guessed-charset: (.*)/', 'x-archive-guessed-charset: windows-1251', $encoding);
print_r($encoding);
echo $encoding[1];