I am using Codeigniter and its validation rules - a custom callback validation. Anyway, this seems not to be CI related I think.
I've got this function to return a string …
function array_implode($a)
{
return implode(',', $a);
}
… but I always get a message implode(): Invalid arguments passed
But var_dump()
shows me this:
array(2) {
[0]=> string(10) "First item"
[1]=> string(11) "Second item"
}
What is wrong?
var_dump($a);
I suspect that this is not an array :) – Helm