Jump to content

Strings to an Array?


Jragon

Recommended Posts

will it add '' in between them?

 

What do you mean will it add '' between them?

 

That just straight up splits the string up into an array with a length of one for each array element.

 

What alex has shown will take this >>> $str = 'abc'  to and do this >>> $arr = array('a', 'b', 'c')

 

Link to comment
https://forums.phpfreaks.com/topic/208665-strings-to-an-array/#findComment-1090127
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.