Jump to content

Splitting variables


eugene2009

Recommended Posts

very simple.. i just want to know the simplest way to do it..

 

how would i split a 10 digit number....

 

i.e.  5952324843

 

into 3 variables.. say if its a phone number and i want them to be split into characters of 3, 3, and 4. ($var1, $var2, $var3 )

 

thank you

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