$comp = "V1001|VI003";
$comp_arr = split("|",$comp);
i hit error:
PHP: Warning: split() [function.split]: REG_EMPTY in xxx
after search around and found that the issue is caused by symbol "|".
"|" is an operator in PHP. If want to use the this symbol as a delimiter, we must excape it with a back slash, "\|"
now it become
$comp = "V1001|VI003";
$comp_arr = split("\|",$comp);
and it works.
Hope this help