Created
March 20, 2017 21:07
-
-
Save GoodChancer/30c7a332fdbf6b428b88d9b5f42bc041 to your computer and use it in GitHub Desktop.
If else null
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if ($itunes['resultCount'] != '0') { | |
| $albumItunesURL = $itunes['results'][0]['collectionViewUrl'].'&ls=1&mt=1'; | |
| $artistItunesURL = $itunes['results'][0]['artistViewUrl'].'&ls=1&mt=1'; | |
| $albumItunesArt = $itunes['results'][0]['artworkUrl100']; | |
| } else { | |
| $albumItunesURL = 'NULL'; | |
| $artistItunesURL = 'NULL'; | |
| $albumItunesArt = 'NULL'; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment