I have a undivided big String array which looks kind of like this:
VALUES(1,1,1,0,1,"TEst",0,"NAME","URL.de","RANDOM CRYPRIC STUFF 34","RANDOM CRYPRIC STUFF34 ","test",1,2)
VALUES(1,1,1,0,1,"TEst",0,"NAME","URL.de","RANDOM CRYPRIC STUFF 34","RANDOM CRYPRIC STUFF34 ","test",1,2)
VALUES(1,1,1,0,1,"TEst",0,"NAME","URL.de","RANDOM CRYPRIC STUFF 34","RANDOM CRYPRIC STUFF34 ","test",1,2)
The Values are all diffrent and my PHP code looks like this to get the individual Values:
$backupdat = fopen("text.txt","r");
while(!feof($backupdat))
{
$found1.= strchr(fgets($backupdat,1024),"VALUES");
}
fclose($backupdat);
$whatIWant = explode("VALUES(",$found1);
$User= explode(",",$whatIWant[1]);
enter code here
echo $User[10]."--";
echo $User[11]."--";
Now I can browse all things with Values by changing the Array "WhatIWant[X]" and $User[x].
The thing is the "Random Cryptic Stuff can be everything all chars including , " and newRow. So my explode method gets the wrong input.
I'm now looking for some other way to get my values, the only thing fix in length is the Crypric stuff which is 34 chars long.
text.txt. If you can change how this is saved, json or phps serialize() would make retrieving values much easier