Menu
I am working on an application that allows users to write a multichoice text online. For every question, there are 2 or more choices, out of which only one is correct and that one has an iscorrect value of 1 while others have 0. Now I am working on a form that edit the question and options at the admin end and want to search through the result of the select statement and get the position of the element “is correct” with a value of 1, how do I achieve that please? I have tried array_search() and array_keys() but still can’t get it