1

I was wondering if there was a simple way to convert an array like this, which is passed from my form

Array
    (
        [Uk3] => Array
            (
                [code] => BOARD
            )
}

Info an array that can be used in a find, like this

Array
(
     [Uk3.code] => BOARD
)

Of course I wrote a loop to do it, but I would think there is helpful Cake method to do it. Simple things like this can take an inordinate amount of time to figure out!

Thanks

1

1 Answer 1

1

http://api.cakephp.org/class/set#method-Setflatten

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.