View Single Post
  #6  
Old 05-13-2010, 10:46 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura about
Send a message via AIM to adam
PHP Code:
function onCreated() {
  
temp.output = {};
  
  
this.test.var = "testing";
  
temp.output.addthis.test.getDynamicVarNames() );
  
  
this.test.var = "";
  
temp.output.addthis.test.getDynamicVarNames() );
  
  
clearemptyvars(); 
  
temp.output.addthis.test.getDynamicVarNames() );
  echo(
temp.output);

This example does not crash. And it also demonstrates the use of clearemptyvars() I was trying to demonstrate. Very useful.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote