Home  >  Q&A  >  body text

How do PHP's public static functions receive passed values?

The code of info.php on the first page of PHP: <?phprequire_once 'messinfo.php';$infoa = 'Hello';$infob= 'Hello';$res = mess($infoa,$ infob); receive the passed value PHP second page messageinfo.php code: public static function mess($infoa,$infob) {//I can’t receive the data of $infoa, $infob here} Why is this? What should I do to receive the passed value? Xiaobai did not hesitate to teach me.



P粉574081974P粉574081974417 days ago317

reply all(0)I'll reply

No reply
  • Cancelreply