How to call a function from inside class to outside class

Question

i want to call myfunction() inside the myfunction2()
how can i achieve that. can you give me an example.

class myclass(){

  function myfunction(){
  #my code here
  }

}


function myfunction2(){
# how can i get the function myfunction() here.
}
0
, Jhonray Angcon 2 years 2019-11-27T02:50:40-05:00 0 Answers 70 views 0

Leave an answer

Browse
Browse