mitwess Posted November 13, 2009 Share Posted November 13, 2009 I have a variable from hidden post form ($nums) which already resembles an array (2,6,2,5,etc.) but array($nums) is giving me an error. so what's the best way to make $nums an actual functional array? Link to comment https://forums.phpfreaks.com/topic/181356-how-to-turn-an-array-esque-variable-3625-into-a-functional-array/ Share on other sites More sharing options...
Mchl Posted November 13, 2009 Share Posted November 13, 2009 explode Link to comment https://forums.phpfreaks.com/topic/181356-how-to-turn-an-array-esque-variable-3625-into-a-functional-array/#findComment-956693 Share on other sites More sharing options...
mitwess Posted November 13, 2009 Author Share Posted November 13, 2009 i figured that out. but how do i get it back into an array. $nums gets one number larger each time my script loads, so i'm not dealing with a static set of numbers (i.e. array($nums[0], $nums[1], nums[2]). how do i rearray an incrementally growing $nums? Link to comment https://forums.phpfreaks.com/topic/181356-how-to-turn-an-array-esque-variable-3625-into-a-functional-array/#findComment-956989 Share on other sites More sharing options...
Mchl Posted November 13, 2009 Share Posted November 13, 2009 Could you paste some of oyur code, because I don't quite understand the issue... Link to comment https://forums.phpfreaks.com/topic/181356-how-to-turn-an-array-esque-variable-3625-into-a-functional-array/#findComment-957001 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.