Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class planinfo {
- public $plantype = '';
- public $varianttype = '';
- public $productinfo = array(
- 1 => "9551353606",
- 2 => "9551354694",
- );
- function showplan() {
- echo $this->productinfo[$this->plantype];
- }
- function showVariant() {
- if ($this->plantype == 1) {
- $variantinfo = array(
- 1 => "35778561542",
- 2 => "35778561606",
- );
- }
- if ($this->plantype == 2) {
- $variantinfo = array(
- 1 => "35778569350",
- 2 => "35778569414"
- );
- }
- echo $variantinfo[$this->varianttype];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement