Re: Basic PHP question That's fine, although you did it wrong.
It should be $variable = '';
== means "is it equal to ...", = means "assigned to ...".
Also, you could use the unset function.
unset($variable).
The first way, assigning it to '', means it is set but has no value. using unset() means it is not set, and has no value, so it's like you never used it in the first place.
__________________ Need website help? PM me! |