- explode: documentation ( source)
<?php
$seoagents = "test,test2,test3";
$custom1agents = explode(",",$seoagents);
echo $custom1agents;
/*
if(preg_match('/('.implode('|', $custom1agents).')/i', $_SERVER['HTTP_USER_AGENT'], $match))
{
$custom1=1;
}
*/