Home >Backend Development >PHP Tutorial >PHP calls method and passes parameters
Picture 1
Picture 2
Picture 3
Figure 1 calls the _getTicket() method
Please tell me whether the parameter passed in the _getTicket() method in Figure 3 is $ewm or $ewm_data['dg_ewm']??? Why? Please explain the reason?
I think the value $ewm_data['dg_ewm'] is passed. Why is the parameter in Figure 3 $ewm? Is it the same as Figure 2?
Picture 1
Picture 2
Picture 3
Figure 1 calls the _getTicket() method
Please tell me whether the parameter passed in the _getTicket() method in Figure 3 is $ewm or $ewm_data['dg_ewm']??? Why? Please explain the reason?
I think the value $ewm_data['dg_ewm'] is passed. Why is the parameter in Figure 3 $ewm? Is it the same as Figure 2?
First of all, the usage method _getTicket()
is shown in Figure 1. There is no doubt about this! Figure 2 is the definition of the _getEwm()
method, and Figure 3 is the definition of the _getTicket()
method, right! Then when I define the method, I only need to define a few parameters and the parameter names can be defined however I want, right! I just need to make sure that the value is passed correctly when using this method. Is there any connection between the method in Figure 3 and the method in Figure 2? What’s there to worry about? I still don't understand what you mean! ! ! !
What exactly do you want to ask??