Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- thislocation_arr = array();
- $location = array('a', 'b', 'c');
- for ($i = 0; $i < $rownum; $i++) {
- //dynamically name a array
- $location.${$location} = array();
- //add date values to this array
- $location.${$location}[$i] = $somevalue;
- //add dyanamic array value to the main associated array
- $thislocation_arr[$location] = $location.${$location};
- }
Advertisement
Add Comment
Please, Sign In to add comment