php - OOPHP public function send array to var -


ok simple question thought ask because not sure, need following

1) have public function call

    public function myarraysubmit($key,$values){  } 

inside have switch() looks @ key , should $values , use array in sent $values

but not sure, if able send array var function when last tied did not work, point me in right direction if or not work.

thanks

did try....

public function myarraysubmit($key,&$values){ ... } 

or

public function myarraysubmit($key){ ... return $values; } 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -