Jump to content

PHP CONVERT HELP EMERJENCY..


Baseball

Recommended Posts

MY JAVASCRIPT PARSES THIS CODE:

1:0,1,0;6:0,2,0;7:0,3,0;8:0,4,0;9:0,5,0;3:1,1,0;4:1,25,0;2:2,1,0;5:2,2,0

 

 

BUT I NEED PHP TO PARSE IT INTO THIS:

 

{1:[0,1,0,0,0,0],6:[0,2,0,1,1,1],7:[0,3,0,1,1,1],8:[0,4,0,1,1,1],9:[0,5,0,1,1,1],5:[0,6,0,1,1,1],3:[1,1,0,1,0,1],4:[1,2,0,1,0,1],2:[2,1,0,0,0,0]}

 

 

WITH THE ['s and { beggining at END }

 

 

 

Please help me on HOW IN THE EARTH I WOULD GO ABOUT DOING THIS.

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/185995-php-convert-help-emerjency/
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.