Link to home
Start Free TrialLog in
Avatar of studio1090
studio1090

asked on

get characters using strtok

Using strtok, how can I display everything before the first full stop in my string?
ASKER CERTIFIED SOLUTION
Avatar of Jeff Darling
Jeff Darling
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The same effect can be accomplished with explode() and strpos() + substr()

More docs on strtok here:
http://us3.php.net/manual/en/function.strtok.php

Best regards, ~Ray
Avatar of studio1090
studio1090

ASKER

Thank you for your help, and thank you for the heads up Ray