Assuming that that array is in a variable called $data:
Set::Extract($data, 'Tag.{n}name');
On Nov 12, 1:03 pm, "Okto Silaban" <[EMAIL PROTECTED]> wrote:
> I have this data :
>
> [Tag] => Array
> (
> [0] => Array
> (
> [name] => Programming
> )
>
> [1] => Array
> (
> [name] => Ajax Programming
> )
>
> )
>
> How can I change it to this (using Set::combine) :
>
> [Tag] => Array
> (
> [0] => Programming
>
> [1] => Ajax Programming
>
> )
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---