Each "else if" is unclosed brackets. "for" is closed. "if" inside "for" is closed. But "else if" mis-matched
AndrisP 193 Posting Pro in Training
AndrisP 193 Posting Pro in Training
k_manimuthu commented: Thanks for your solution +5
Aeonix commented: Yea! +4
AndrisP 193 Posting Pro in Training
Stefce commented: How much sub-arrays i can have ? +2
diafol commented: This needs to be a sticky! Heh heh. +14
AndrisP 193 Posting Pro in Training
AndrisP 193 Posting Pro in Training
AndrisP 193 Posting Pro in Training
AndrisP 193 Posting Pro in Training
AndrisP 193 Posting Pro in Training
AndrisP 193 Posting Pro in Training
AndrisP 193 Posting Pro in Training
rproffitt commented: Well said. +11
diafol commented: Good advice +14
AndrisP 193 Posting Pro in Training
AndrisP 193 Posting Pro in Training
cereal commented: Hi, why not `filter_input()` then? https://php.net/filter-input +14