RE: [PHP] assign associative array values to variables? SOLVED

2009-03-20 Thread Ford, Mike
On 18 March 2009 13:21, PJ advised: Thank you, once again, dg. Could not get it to work... whatever... But I did find an unexpected solution which made things very simple. This is the part for the categories section: if ( isset( $book_categories[$bookID] ) ) { foreach (

Re: [PHP] assign associative array values to variables? SOLVED

2009-03-20 Thread PJ
Ford, Mike wrote: On 18 March 2009 13:21, PJ advised: Thank you, once again, dg. Could not get it to work... whatever... But I did find an unexpected solution which made things very simple. This is the part for the categories section: if ( isset( $book_categories[$bookID] ) ) {

Re: [PHP] assign associative array values to variables? SOLVED

2009-03-18 Thread PJ
dg wrote: On Mar 17, 2009, at 6:47 PM, PJ wrote: The problem is that the $array returns another array (multidimensional and associative ?? ) ?php $array_branch_one = array(value_one = red, value_two = blue); $array_branch_two = array(value_three = green, value_four = black);