Ask a PHP memory processing problem. This post was last edited by robotguy at 15:17:38, January 1 ,.
Memory php
Assume that a variable is defined in a php file:
Now there are 100 people accessing this file at the same time. how many times does PHP define the $ var variable in the memory?
Reply to discussion (solution)
100 times, didn't you think of it?
File Execution: defines a variable, allocates memory, finishes execution, releases the variable, and releases the memory.
100 times, didn't you think of it?
Oh, that's it. By the way, which of the following methods can be used to define one hundred variables and an array containing 100 elements to save memory and speed? I am a newbie. I have recently debugged a program and zend studio is not very useful. I don't know how you debug the program. do you have any information about this.
You mean that one hundred variables are defined at the same time, that is, the script is executed at the same time as 100, because the memory is released at the end of the PHP script, so there is no comparability.