Im trying to split up a string at every 12 commas in a comma delimeted string here is the string
$stuff = "2010-03-16,852828,643,New,85285,Toll,2,8528528,32,202,852852,ffffgdesddf,sdfsdfgsdfs,1970-01-01,852582,612,New,85286,Toll,2,8528529,30,74,456564,dcscds,sc"
Or when i experience a string that looks like a date
Here is what im tring to use, can this be done or am i dreamin again I gave up one tryin to to it by date lol
Code: Select all
$keywords = preg_split("/([a-zA-Z0-9_-]+?)([,]{12})/", $stuff);
var_dump($keywords);Is what ive got here completly wrong or am i on the right track??![]()