write the var_dump($result); to the textfile
<pre><code>$myFile = "testFile.txt";
$fh = fopen($myFile, 'w');

fwrite($fh, $contact_first_name);         



$result = user_profile_xml($data);

echo '&lt;br&gt;begin response:&lt;br&gt;';
echo '&lt;pre&gt;';
var_dump($result);
echo '&lt;/pre&gt;';
echo'&lt;br&gt;end response&lt;br&gt;'; 
</code></pre>

<p>I want to write the var_dump($result); to the textfile</p>
