alecks Posted February 16, 2007 Share Posted February 16, 2007 Not adding an element to an array, but adding a string to an element in an array ex. $array = array('x' => 'jorge'); and I would like for "joe" to be added to the "x" element of array $array, so that (at the end of the script) the array will look like this: print_r($array); /* Should output something like Array{[x] => jorgejoe} */ Is there any way to do this, or will I have to work around it? Quote Link to comment Share on other sites More sharing options...
fert Posted February 16, 2007 Share Posted February 16, 2007 $array['x'].="joe"; 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.