Jump to content

more ways converting string into an array?

Recommended Posts

It depends on what rules you want to use to convert the string into an array. There's str_split() if you want to break the string into equally sized array pieces, preg_split() works like explode() except that it uses a regular expression as the delimiter.


If you tell us what exactly you're trying to do with the string then we can be more specific with how to turn it into an array.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...