0

I have simple function say

function ABC()
{
     //Somecode;
    return $a;

}

and i have class

class XYZ {

}

What i want to do is call function ABC in class XYZ and assign return value to some variable in class XYZ and use there like :

class XYZ {

  $var = ABC();
}
user3782114
  • 542
  • 2
  • 7
  • 22

0 Answers0