Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $vcpu = array("1 vCore (s)", "1 vCore (s)", "2 vCore (s)");
- $machine = array("Openstack KVM");
- $ovh = new Api( $applicationkey, $applicationsecret, $endpoint, $consumerkey);
- $result = [$ovh->get('/price/vps/2018v1/ssd/model/model1'),
- $ovh->get('/price/vps/2018v1/ssd/model/model2'),
- $ovh->get('/price/vps/2018v1/ssd/model/model3')];
- $isi ["vcpu"] = $vcpu;
- $isi ["machine"] = $machine;
- $isi ["result"] = $result;
- /*
- echo "<pre>";
- print_r($isi);
- echo "</pre>";
- */
- $s="<table>";
- for($i=0;$i<count($result);$i++){
- $s.="<tr>";
- $s.="<td>".$vcpu[$i]."</td>";
- $s.="<td>".$result[$i]."</td>";
- $s.="</tr>";
- }
- $s.="</table>";
- echo $s;
Advertisement
Add Comment
Please, Sign In to add comment