'OK', 'message' => 'Username ' . $username . ' is available. You can just pick it up!')); } else { echo json_encode(array('status' => 'ERROR', 'message' => 'Username ' . $username . ' is not available. Please choose another one.')); } ?>