KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm getting illegal offset type error for every iteration of this code. Here's the code : $s = array(); for ($i = 0; $i < 20; $i++) { $source = $xml->entry[$i]->source; $s[$source] += 1; } print_r($s);
Tags (comma-separated)
Save Edits
Cancel