eugene2009 Posted February 27, 2010 Share Posted February 27, 2010 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 Quote Link to comment Share on other sites More sharing options...
jskywalker Posted February 27, 2010 Share Posted February 27, 2010 $a=5952324843; print substr($a,0,3); print substr($a,3,3); print substr($a,6,4); Quote Link to comment Share on other sites More sharing options...
eugene2009 Posted February 27, 2010 Author Share Posted February 27, 2010 thank you! works great! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.