I am parsing a file to put its content into a database.
I test every line, if its content should ignored or handled, using substring on the first four characters.
My snippet is ..
$inputLine = 'Baseline 100%T,,...,,208a,,208b,,Leerfilter,';
$check = substr($inputLine, 0, 4);
var_dump($check)
My output from var_dump is:
string(4) "B"
Which is not what I expected. I expected "Base" as output but it tells me having a string containing four characters and its content is just "B".
The input is from a normal text file, like hundreds before of fine working files of the same kind and format which has been successfully parsed before.
Has anyone an idea what it means
string(4) "B"
Thanks in forward.