Save only the contents of php array to file
I have an array $urls_array, how do I only save the contents and not
anything else into a file?
INPUT:
Array (
[0] => "http://google.com"
[1] => "http://facebook.com"
[2] => "http://yahoo.com"
)
OUTPUT:
http://google.com
http://facebook.com
http://yahoo.com
I tried using json_encode($urls_array) and serialize() and print_r(), but
nothing gave me the clean result I wanted. Any help?
No comments:
Post a Comment