Home > Backend Development > PHP Tutorial > PHP calls method and passes parameters

PHP calls method and passes parameters

WBOY
Release: 2016-09-21 14:12:53
Original
1380 people have browsed it

Picture 1
PHP calls method and passes parameters
Picture 2
PHP calls method and passes parameters
Picture 3
PHP calls method and passes parameters

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?

Reply content:

Picture 1
PHP calls method and passes parameters
Picture 2
PHP calls method and passes parameters
Picture 3
PHP calls method and passes parameters

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??

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template