BRADERY Posted December 26, 2010 Share Posted December 26, 2010 Ok I need to write an array to a file here is the code if($place[2] < 10){ echo "Account Invalid"; $account = var_dump($account_data[$i][0]); echo $account; $fp3=fopen('invalid.txt', 'a+'); fwrite($fp3, $account); fclose($fp3);} when I try if($place[2] < 10){ echo "Account Invalid"; $account = var_dump($account_data[$i][0]); echo $account; $fp3=fopen('invalid.txt', 'a+'); fwrite($fp3, $account_data[$i][0]); fclose($fp3);} I just get "Array[1]" written to the file.. What can I do to write the array to the file? Thanks Quote Link to comment Share on other sites More sharing options...
BRADERY Posted December 26, 2010 Author Share Posted December 26, 2010 I've tried $account = print_r($account_data[$i][0]); also.. didnt work lol Quote Link to comment Share on other sites More sharing options...
the182guy Posted December 26, 2010 Share Posted December 26, 2010 What is in $account_data and exactly which part of it are you trying to write out? Quote Link to comment Share on other sites More sharing options...
BRADERY Posted December 26, 2010 Author Share Posted December 26, 2010 pmed you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.