When model returns an array of stdClass - how to iterate |
Hello
one kind hint as you may know I'm not an experienced coder I have a method in my model that returns an array of stdClass how should be iterated this ? the classes are obviously rows of one table from the DB Thank you for hints and tips R. PHP Code: foreach ($data as $d) { HTH (06-02-2023, 11:24 AM)sheilaf Wrote:great! thank you!!!! @sheilaf I was finding only useless topics (or maybe I was wrongly formulating my searches on the web) where objects where instead associative arrays So really Thank you, you took away a big headache from me Though for the sake of completeness I'm experimenting with HTMX and I have made a live search which now works like a charm |
Welcome Guest, Not a member yet? Register Sign In |