The variable num is not a global variable. Why can it be called by a function?
小周
小周 2018-07-30 10:20:51
0
4
1158

$num = 10;



##//Call function A() once;

A($ num);




#function A( $arg ){


echo $arg;


//Go inside function A and run to execute function B

B( $arg);


## echo 'We need to keep working hard until God is moved by us';


echo $arg.'<br />';

}

##function B( $number ){


## echo $number;


## echo 'I am a dog, the execution is finished<br />';


##}

小周
小周

reply all(2)
Summer

Then you have to learn from the basics

  • reply No. .
    小周 author 2018-07-30 11:38:49
  • reply I got it. Directly equivalent to direct A(10);
    小周 author 2018-07-30 11:46:46
Summer

You define a variable $num and then pass it as a parameter to function A without calling it.

  • reply What I don't understand is how the value 10 is entered.
    小周 author 2018-07-30 11:30:14
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template