Ok. First i only put question of, how to just grab the date from text-row. I try to put simple question, and get simple proposals to do it, because if there is too much functions, code could be gone complex.
The txt-file is bank statement. I read it to table, row by row. In same time, code checks, if there is invoice-number matching to not paid invoice, and mark invoice as "Hey, im in this statement"
Next step is, that i have now targeted rows with "Check the paid amount". At this point, code do as it should do. But i need the paid date still for interest-invoice.
Meanwhile, i did able to find the date with giving correct year before, with this syntax:
$finddate=strstr($statement, ''.$year.'');
Result is: "2016040956774589398"
So i need only 8-characters, and all others can be cleared from right. ->It doesn't matter, how long the row is then.