title: PHP StdClass() properties
body: <p>I'm having some issues with the StdClass() object in PHP..</p>
  
  <p>I'm using it to send information (a string and boolean) to a function.
  Outside the function, it works great.</p>
  
  <pre><code>$args = new StdClass();
  $args-&gt;str = "hej";
  $args-&gt;ic = TRUE;
  fun($arg);
  </code></pre>
  
  <p>This is then the function called:</p>
  
  <pre><code>function fun($args) {
  $str = $args-&gt;str;
  $ignore_case = $args-&gt;ic;
  echo $str;
  echo $ignore_case;
  }
  </code></pre>
  
  <p>which just writes "stric" instead of the variable contents.
  Is there a way to use StdClass to transfer this data and read it correctly?</p>
  
  <p>//Martin</p>