Jump to content

Splitting Strings


gerkintrigg

Recommended Posts

Hi.

I am trying to make post code search and need to be able to break strings apart by character. I can do it by spaces and things using the explode() function, but I want to be able to get the first letter of the string only, the first and second only, first second and third etc.

 

I forgot how I did it before and can't find any code to help me.

 

Hope you guys and girls can help

 

Thanks,

 

Neil

Link to comment
https://forums.phpfreaks.com/topic/53540-splitting-strings/
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.