When I am parsing a text file, I will type some characters (space, line break, comma, duration).
I want to leave. In PHP, anyone can check the variable present in an array with in
Currently writing it like this (excuse strange formatting)
if (c == '' || c == '\ n' || c == '.' 'C ==', ') {Continue; }
But it seems a bit dumb. Is this a clever / more compact way to compare many in this way?
One more option should be used to determine whether a given letter is given a given string In:
if (strchr ("\ n.,", C) continue;
Comments
Post a Comment