PHP allocates a certain amount of memory when executing PHP scripts. When the allocated memory is exhausted, the PHP script shows a fatal errorMemory_limit error
PHP Fatal error: Allowed memory size of xxx bytes exhausted (tried to allocate yyy) in yourscript.php
Please note that the memory_limit value should be set to at least as big as post_max_size.
Watch the video