Skip to content

Instantly share code, notes, and snippets.

@JosephShering
Created April 3, 2015 13:12
Show Gist options
  • Save JosephShering/b76a7b7251ebea68187b to your computer and use it in GitHub Desktop.
Save JosephShering/b76a7b7251ebea68187b to your computer and use it in GitHub Desktop.
$return['id_full'] = substr($return['last_name'],0,1) . $return['id_number'];
foreach($return as $k => $v) {
if(empty($return[$k])) {
if ($k != 'middle_name') {
$return['success'] = false;
$return['message'] = 'Sorry, there was a problem reading your card.<br/>Please swipe again.';
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment