- var_dump: documentation ( source)
- array_merge: documentation ( source)
<?php
function getUserIdAgg($name)
{
switch ($name)
{
case 'SEOPULT':
return 337440;
case 'EFF':
return 579714;
case 'ROOKEE':
return 1012884;
case 'MAREMOTO':
return array(502866 /*maremoto*/, 1189998 /*noronvn*/);
case 'ALTWEB':
return array(134933 /*djblaze*/, 1183395 /*megaindexooo*/);
default:
return 0;
}
}
$exclude_seo = array();
$exclude_seo = array_merge($exclude_seo, (array)getUserIdAgg('SEOPULT'));
$exclude_seo = array_merge($exclude_seo, (array)getUserIdAgg('ROOKEE'));
var_dump($exclude_seo);