This question comes from Brothers Cloud Classroom.
Write the running results: u Function MyFunc ($ argument) {
Answer: 1. echo “myfunc($variable)=".myfunc($variable); How will this sentence be executed? ?
The latter part "myfunc($variable);" will be executed first and then echo, so the answer is at least
20myfunc($variable)=. 20 is the execution result of myfunc($variable);. 2. How will echo "myfunc($variable)=". be parsed? Variables enclosed in double quotes will be executed, but functions will not be executed. So equal to:
myfunc(10)=.
So, the answer is at least
20myfunc(10)= . But look carefully, function myfunc($argument){
The final correct local answer is:
10myfunc(10)=
The above introduces another PHP interview question, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.