how i can turn in PHP the $validation output from 1/0 to the word "valid/invalid"? Do i need json_encode($validation) in this case?
$json = json_decode($content, true);
if ($json['error'] == NULL ) {
$country = $json['result']['countryCode'];
$vatNumber = $json['result']['vatNumber'];
$validation = $json['result']['valid'];
echo "
<dt>Valid:</dt>
<dd>$validation</dd>
<dt>VAT-Number:</dt>
<dd>$country$vatNumber</dd>
} else {
echo "error";
}
Thank you!