-
Which of the following PHP functions can be used to get the current memory usage?
-
- get_peak_usage()
- get_memory_usage()
- get_memory_peak_usage()
- get_usage()
- None of these
Correct Option: B
We can use the memory_get_usage() function, and to get the highest amount of memory used at any point, we can use the memory_get_peak_usage() function.