Array combine totals

Posted 7 months ago by RossUK

if I have an array like this [‘failed’ => 1, ‘completed’ =>5] pulled from a DB query but there are other options that may show up in the query that I need to include even if no results exist for example mple ```[‘failed’ => 1,‘completed’ => 5,‘busy?chieve this in php. Is there is a way to merge an empty array with one that has values or similar?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.