Sign in to follow this  
Followers 0
403forbidden

Variable Deletion

8 posts in this topic

Is there any way to delete the contents of a variable other that doing...

$var = ""

Thanks a lot,

403forbidden

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Just like the code you show :|

Edited by nguyenbason

UnderWorldVN- Just play the way you like it

Share this post


Link to post
Share on other sites

How much memory does an empty variable take up?

Share this post


Link to post
Share on other sites

How much memory does an empty variable take up?

I'm sure it's only significant if you start using tens of thousands of variables. Don't worry about just a few :D

Share this post


Link to post
Share on other sites

if u have functions, then as far as possible keep the variables local and the scope (if i understand correctly) dies as soon as you are out of the function, thereby saving space if u are concerned! anyways as people have mentioned, its generally ignorable as long as u free the variable to null after its usage.

Share this post


Link to post
Share on other sites

Gotcha. Thank you!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0