eludlow Posted December 15, 2008 Share Posted December 15, 2008 I have an array that has values in the form x,y For each element of the array I want an "x" variable and a "y" variable. I believe the way to do this is with preg_split - can someone help with the regex and explain what is being done. Thanks, Ed Ludlow Quote Link to comment https://forums.phpfreaks.com/topic/137022-solved-split-based-on-comma/ Share on other sites More sharing options...
eludlow Posted December 15, 2008 Author Share Posted December 15, 2008 Ignore above - brain fade moment I think. Much simple to do with explode() which is now working. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/137022-solved-split-based-on-comma/#findComment-715645 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.