I have encountered a problem that I need to solve using PHP.
I have a multiline input that looks like this:
a,b,c,d
a=10 tools
b=50 subtools
c=80 othertools
I want to read input using stdin but I'm only able to read the first line.
using fscanf(STDIN, "%s\n", $name);
How do I read the multiple input lines and save them to a list? I want to use a comma as separator for first-line and space as a separator for the rest.