+ 3

Can anybody tell me how to append arrays to a file? Also how to get a list of arrays from a file?

I would like to append an array to a file, and then on a separate file, get a list of the 5 latest arrays, get their keys and values, and And put them in an easy to read message log. It is for a Siri shortcut I am making, it’s a chat program if that helps. Thank You!

2nd Sep 2020, 2:54 PM
Dallas Griffith
Dallas Griffith - avatar
4 odpowiedzi
+ 2
A little more patience Dallas Griffith . After completing the PHP tutorial everything will be much clearer. By the way here is valid first your own attempt is shown and then will be asked if it does not work as you want.
2nd Sep 2020, 4:48 PM
JaScript
JaScript - avatar
+ 1
I see the problem now.lol
6th Sep 2020, 6:54 PM
Manfreo
Manfreo - avatar
0
It's not that simple to append arrays to a file since you'll have to store them as text which might cause a conversion to string error.I recommend just using session variables instead. (Referring to PHP).
6th Sep 2020, 6:09 PM
Manfreo
Manfreo - avatar
0
how do i use session variables with siri shortcuts?
6th Sep 2020, 6:10 PM
Dallas Griffith
Dallas Griffith - avatar