Cerf
08-03-2003, 11:20 PM
Yo yo yo,
I'm writing a script in php that reads a very larg file containing alot of information. The problem is that if the information is entered in wrong, errors are generated.
To combat this problem, in a temporary measure, I kneed to know how to isolat characters
Put easily, how can I figure what the first character of a string is.
e.g.
if the first character in a string == 'a' then ...
if the fist character in a string == '#' then...
else ...
I'm writing a script in php that reads a very larg file containing alot of information. The problem is that if the information is entered in wrong, errors are generated.
To combat this problem, in a temporary measure, I kneed to know how to isolat characters
Put easily, how can I figure what the first character of a string is.
e.g.
if the first character in a string == 'a' then ...
if the fist character in a string == '#' then...
else ...