I am using ini_set("memory_limit","256M"); to perform some actions which are not possible without changing memory limit by PHP code.
But I want to reset memory limit back to default after executing that particular task
For Example
public function myFunction(){
ini_set("memory_limit","256M");
//Perform heavy actions
resetMemoryLimitToDefault(); //Reset memory Limit
}