I have an array and I want to show the values of the array as part of an error message. But of course when I do the code below I just get my error message with array at the end. Please help
$matches = array("2","35","27");
Now I just want to show the values to in a error message.
if (isset($matches)){
$error_message = "The following numbers match: " . $matches;
}
echo $error_message;
Result:
The following numbers match: 2 35 27