Home » PHP » PHP Functions » Question
  1. Which of the following PHP functions can be used to get the current memory usage?
    1. get_peak_usage()
    2. get_memory_usage()
    3. get_memory_peak_usage()
    4. get_usage()
    5. 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.



Your comments will be displayed only after manual approval.