@NogDogJun 09.2015 — #[code=php] $data = array(); foreach($yourArray as $row) { $parts = explode(',', $row); $data[$parts[0]] = array( 'name' => $parts[1], 'date' => $parts[2] ); } [/code] However, as the array gets larger, this all becomes more and more of a memory hog, so it will not scale well, in which case there may be better ways to do this (e.g. by iterating through a query result set or wherever the data is coming from).
@rootJun 10.2015 — #Also, it helps to wrap any code elements, segments in forum tags, as you will find on ALL web forums, this is a defacto standard, some boards disable tags, this site doesn't..! So please use them, see NogDogs example... thats [b][p[/b][b]hp][/b]...code in here...[b][/p[/b][b]hp][/b].