I'm reading through a file of the form
x=y
a=b
c=d
I always want the value of b
So right now I read through line by line and say if preg_match ("a =", line)
it's my line
So my questions are
a) Better to truncate "a=", or to preg_replace "a=" with ""
b) Or is there just a better way to grab info out of a file like this?
And I realize my first way works fine, I want it fast though.
-Rob
x=y
a=b
c=d
I always want the value of b
So right now I read through line by line and say if preg_match ("a =", line)
it's my line
So my questions are
a) Better to truncate "a=", or to preg_replace "a=" with ""
b) Or is there just a better way to grab info out of a file like this?
And I realize my first way works fine, I want it fast though.
-Rob