Hi - I assign a string to a variable in a loop. I want to initialise the variable after use. Is it more efficient to do this: $my_str="";
or this: unset($my_str);
Cheers, Tony.
$my_str="" will just set the variable to equal "".
unset($my_str) will actually delete the variable completely removing any space it was allocated from memory.
...i think 🙂