# Redeclaration Of Variables

**URL:** <https://forum.kirupa.com/t/redeclaration-of-variables/99370>\
**Category:** Uncategorized\
**Created:** [January 17, 2004, 11:40pm UTC](https://forum.kirupa.com/t/redeclaration-of-variables/99370 "2004-01-17T23:40:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kole](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kole](https://forum.kirupa.com/u/Kole)\
**Post date:** [January 17, 2004, 11:40pm UTC](https://forum.kirupa.com/t/redeclaration-of-variables/99370/1 "2004-01-17T23:40:35Z")

</div>

Can you redeclare a variable?

Say I made var $temp[] an array and put stuff into it, could i then redeclare temp as var $temp = 4  
or maybe var $temp[], another array, but completly clear? or would it hold a risidual ?

If not is it possible to wipe an arrays content?

In java we used to dump and drop variables all over the place, a string could be an integer, then a char, then a float or a double at a whim. :huh:
