$cripts Posted March 6, 2006 Share Posted March 6, 2006 OK heres my problem i have an array containing like so[code]$array = array("Tony" => "Him", "Timothy" => "His");[/code]and when i need to update that array after a bit dynamicaly to be say[code]$array = array("Tony" => "Him", "Timothy" => "His", "Sarah" => "Her", "Racheal" => "Hers");[/code]and im stuck on something so simple.... help will be appreciated. Link to comment https://forums.phpfreaks.com/topic/4247-array-question/ Share on other sites More sharing options...
kenrbnsn Posted March 6, 2006 Share Posted March 6, 2006 Just add the indices like so:[code]<?php$array['Sarah'] = 'Her';$array['Racheal'] = 'Hers';?>[/code]Ken Link to comment https://forums.phpfreaks.com/topic/4247-array-question/#findComment-14756 Share on other sites More sharing options...
$cripts Posted March 6, 2006 Author Share Posted March 6, 2006 ty Link to comment https://forums.phpfreaks.com/topic/4247-array-question/#findComment-14760 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.