- Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16
- Parse error: syntax error, unexpected '' .$message;' (T_ENCAPSED_AND_WHITESPACE), expecting ',' or ';' in /in/ITX3u on line 4
Process exited with code 255.
<?php
function sendHttpStatus(int $statusCode, string $message) {
echo ' .$statusCode. ' ' .$message;
}
sendHttpStatus(404, "File Not Found"); // integer and string passed
sendHttpStatus("403", "OK"); // string "403" coerced to int(403)