Saturday, March 18, 2017

How to call a function without wait it finishes in php?

I use Laravel framework in my project.

I need call a function in PHP but I don't need wait for this.

For example:

public function payment($Authority)
{
   if (test == 1)
       $this -> one($Authority); // don't wait for this call.
   return view ("site.payment");

}

private function one($Authority)
{
   // php code
   // python code
}



via mySun

Advertisement