<?php

	$in   = '1,4|a1,b4';
	$pair = explode('|',$in);
	$out  = array_combine(explode(',',$pair[0]),explode(',',$pair[1]));
	
	print_r( $out );
?>

