Jump to content

Parsing a String


xProteuSx

Recommended Posts

I remember doing this over a year ago, but now I've completely forgotten how to do this, and I'd much appreciate some pointers:

 

I have a string as follows:

 

12|445|3|321|88|2

 

I'd like to do 2 things:

 

First, I'd like to count the number of numbers (6 in this case: 12, 445, 3, 321, 88, 2);

Then I'd like to enter them into an array. 

 

How do I go about this?  Please help ...

Link to comment
https://forums.phpfreaks.com/topic/249110-parsing-a-string/
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.