IBM Bluemix获取环境变量VCAP_SERVICES

json_decode(getenv('VCAP_SERVICES'), true)['cleardb'][0]['credentials']['name']

json_decode(getenv('VCAP_SERVICES'), true)['cleardb'][0]['credentials']['username']

json_decode(getenv('VCAP_SERVICES'), true)['cleardb'][0]['credentials']['password']

json_decode(getenv('VCAP_SERVICES'), true)['cleardb'][0]['credentials']['hostname']

你可能感兴趣的:(IBM Bluemix获取环境变量VCAP_SERVICES)