populate yesno element

yes that is what i was trying to explain!
but i don't underttand the solution the say, to check the false
At beginning i was checking thef alse!
arrayseacrh will have the same output for not found and for found at index 0 and that it the point that make confusion
as i will have a false in both cases
and checking the false condition will not help anyway
am i wrong?

yes i am wrong :)

i am trying useing the false and it works
but there is somehting i don't understand yet! :)
 
Last edited:
I think using "in_array" instead of "array_search" would be more straightforward in this case.
 
what you mean, i mean i has some benefit?
anyway i just need to use in array and leave everythin glike it is?
 
No huge difference, just more straightforward. And for a generic PHP, ChatGPT can be your good friend:
upload_2023-8-24_15-57-33.png
 
We are in need of some funding.
More details.

Thank you.

Staff online

Members online

Back
Top