leela Posted June 16, 2011 Share Posted June 16, 2011 is there any function in arrays so that i want to keep the same key ,remove the current value and assign new value...... i tried array_fill_keys but it works for all keys........ pls help;;; in config.php , i want max_upload_limit 3 mb ......so i want to change the value , keep tje same key thanks. Link to comment https://forums.phpfreaks.com/topic/239495-arrays/ Share on other sites More sharing options...
Cagecrawler Posted June 16, 2011 Share Posted June 16, 2011 If you just want to change a single value you can do so like this: $var['key'] = 'newvalue'; If you want to combine arrays, use the array_merge function. Link to comment https://forums.phpfreaks.com/topic/239495-arrays/#findComment-1230280 Share on other sites More sharing options...
leela Posted June 16, 2011 Author Share Posted June 16, 2011 thanks...after reading all arrays functions , i got a little confused thanks Link to comment https://forums.phpfreaks.com/topic/239495-arrays/#findComment-1230349 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.