JAFFAR

Blog

print array value in file using php

Posted by jaffar on September 10, 2013 at 2:10 PM

print an array in file

$a = array('a', 'b', 'c');

$handle = fopen('sample.txt', 'a');

fwrite($handle, print_r($a, TRUE));

Categories: None

Post a Comment

Oops!

Oops, you forgot something.

Oops!

The words you entered did not match the given text. Please try again.

Already a member? Sign In

0 Comments