$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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
$cripts Posted March 6, 2006 Author Share Posted March 6, 2006 ty Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.