[PHP] adding key- value pair to an array

2008-12-03 Thread Aniketto
Hi all, Can anybody tell me how can I add key-value pair in an array. My code is as follows $criteria = array(); $criteria['mail_subject'] = $form-subject-getValue(); $criteria['delivery_user_name'] = $form-delivery_user_name-getValue(); $criteria['start_date'] = $form-start_date-getValue();

[PHP] adding key- value pair to an array

2008-12-03 Thread Aniketto
Hi all, Can anybody tell me how can I add key-value pair in an array. My code is as follows $criteria = array(); $criteria['mail_subject'] = $form-subject-getValue(); $criteria['delivery_user_name'] = $form-delivery_user_name-getValue(); $criteria['start_date'] = $form-start_date-getValue();