i dont know if there is already a function for that but this should work.
$str1 is your first string, $str2 the second, the strings are exploded by $del... the script dies if $arr1 and $arr2 are not of the same size.
function myArray($str1, $str2, $del){
$arr1 = explode($del, $str1);
$arr2 = explode($del, $str2);
if(count($arr1) != count($arr2)) die("Arrays are not of same size.");
for($i=0; $i<count($arr1); $i++){
$myArr[$arr1[$i]] = $arr2[$i];
}
return $myArr;
}
for example:
$string1 = "111@222@333@444@555";
$string2 = "aaa@bbb@ccc@ddd@eee";
$result = myArray($string1, $string2, "@");
print($result['111']);
print($result['222']);
print($result['333']);
print($result['444']);
print($result['555']);