EvilGenius
Active Member
[Fix How to] PHP 5 and array_merge errors
http://www.vbulletin.org/forum/showthread.php?t=125302
Might help someone, or just posting as a reference for myself in future
http://www.vbulletin.org/forum/showthread.php?t=125302
Code:
$var = 'option1';
$array = array('option2', 'option3', 'option4');
$array = array_merge($var, $array);
----------------
$var = 'option1';
$array = array('option2', 'option3', 'option4');
$array = array_merge((array)$var, $array);
Might help someone, or just posting as a reference for myself in future