Skip to content

Instantly share code, notes, and snippets.

@hinananoha
Created June 22, 2016 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hinananoha/3f133d34f40fe9d8ecfe0f107bfc9ffa to your computer and use it in GitHub Desktop.
Save hinananoha/3f133d34f40fe9d8ecfe0f107bfc9ffa to your computer and use it in GitHub Desktop.
function returndata(blog)
function returndata($item){
$info['ISBN'] = $item->Items->Item->ItemAttributes->EAN;
$info['Title'] = $item->Items->Item->ItemAttributes->Title;
$info['Author'] = $item->Items->Item->ItemAttributes->Author;
$info['Creator'] = $item->Items->Item->ItemAttributes->Creator;
$info['Binding'] = $item->Items->Item->ItemAttributes->Binding;
$info['Publ_date'] = $item->Items->Item->ItemAttributes->PublicationDate;
$info['Publisher'] = $item->Items->Item->ItemAttributes->Publisher;
$info['Price'] = $item->Items->Item->ItemAttributes->ListPrice->Amount;
return $info
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment