Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. class planinfo {
  2. public $plantype = '';
  3. public $varianttype = '';
  4. public $productinfo = array(
  5. 1 => "9551353606",
  6. 2 => "9551354694",
  7. );
  8.  
  9. function showplan() {
  10. echo $this->productinfo[$this->plantype];
  11. }
  12. function showVariant() {
  13. if ($this->plantype == 1) {
  14. $variantinfo = array(
  15. 1 => "35778561542",
  16. 2 => "35778561606",
  17. );
  18. }
  19. if ($this->plantype == 2) {
  20. $variantinfo = array(
  21. 1 => "35778569350",
  22. 2 => "35778569414"
  23. );
  24. }
  25. echo $variantinfo[$this->varianttype];
  26. }
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement