Jump to content

[SOLVED] String Parsing


ErcFrtz

Recommended Posts

Does anyone know of an easy way to parse a string that was entered via a textbox? Let's say the user enters "1, 2, 3, 4, 5" How can I parse out the numbers? I can't use the substr() function because the numbers or parts between the commas will change. Is there anyway to get something to recognize the comma and grab what's before (or after) it? Thanks.

 

Link to comment
https://forums.phpfreaks.com/topic/135186-solved-string-parsing/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.