A variable $totalis an array ().
print_r($total) gives:
Array (
[01] => Array ( [title] => text [date] => date )
[02] => Array ( [title] => text [date] => date )
[03] => Array ( [title] => text [date] => date )
)
How to write this array to file.txt?
And how to call the created file later so that I can work with the array inside it? How:
$extracred_array = file.txt;
echo $extracred_array[1][title];
Thank.
source
share