case "mDOGE": $currency = "mDOGE"; break; case "PPC": case "mPPC": $currency = "mPPC"; break; case "DRK": case "mDRK": $currency = "mDRK"; break; } } $api = new AsmoneyAPI($pusername, $papiname, $ppassword); changecur($currency); $r = $api->GetBalance($currency); // Possible values are 'EUR', 'mBTC', 'mLTC', 'GBP' echo $balance = $r['value']; ?> </h1> <p>Balance</p> </div> </section> </div> </div>