$myFile = "testFile.txt";
$fh = fopen($myFile, 'w');
fwrite($fh, $contact_first_name);
$result = user_profile_xml($data);
echo '<br>begin response:<br>';
echo '<pre>';
var_dump($result);
echo '</pre>';
echo'<br>end response<br>';
我想写 var_dump($result); 到文本文件