I'm using a PDF reader for PHP to load a big .pdf
file that will store each page as a seperate, huge string in a big array.
This results in an output like this:
"Official certificate Surname: Doe First Name: John Date of birth:
10th of June, 1970 Place of Birth etc etc..."
How do I search for the specific text "Surname" and then select whatever text comes after that until "First Name" to return it as $var_surname
.
The syntax used in the .pdf
file will always be the same, so I have no problem using such absolute conditions for searching for the text.
I genuinely don't know where to start. Sorry if this question feels vague, let me know if more information is required.