Frankly, that looks like a kludge. Are you certain that you require
these variables? Could you not simply use the existing array with its
key => values?
On Tue, Jun 17, 2008 at 7:31 PM, Dave <[EMAIL PROTECTED]> wrote:
>
> thanks for your help,
> i solved it this way:
>
> for($i=0;$i<count($user_info[0]['education_history']);$i++){
> $var_name = 'education_history_'.$i.'_name';
> global $$var_name;
> $$var_name = $education_history['name'];
> }
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---