Removes all data from a structure.
structClear(structure)
returns boolean
Name | Type | Required | Default | Description |
---|---|---|---|---|
structure | struct | Yes | Structure to clear |
profile = {name:'John', instrument:'guitar', occupation:'singer'};
structClear(profile);
writeOutput(serializeJSON(profile));
<cfset profile = {name:'John', instrument:'guitar', occupation:'singer'} />
<cfset structClear(profile) />
<cfdump var="#profile#" />