- Output for 5.3.0 - 5.3.26, 5.4.0 - 5.4.17
- Parse error: syntax error, unexpected ')' in /in/q1aj0 on line 5
Process exited with code 255.
<?php
$header = array('Set-Cookie: A tua tia', 'Set-Cookie:Test','Set-cookie:atuatia');
foreach($header as $line) {
if(stripos($line, 'Set-Cookie:') === 0)) {
$line = trim(str_ireplace('Set-Cookie:', '', $line));
}
echo $line.PHP_EOL;
}
?>