emma57573 Posted November 30, 2008 Share Posted November 30, 2008 I have an array that looks like this: Array ( [toy] => 5 [ baby toys ] => 4 [ cute] => 4 [ doll] => 4 [ soft toys] => 3 [ cloth] => 1 [ orange] => 1 [ sock] => 1 [ monster] => 1 [ sewing] => 1 [ pink] => 1 ) Now I want to remove the extra space at the beginning and end of the array keys like [ baby toys ] should be [baby toys] But I can seem to do it without turning [ baby toys ] into [babytoys] which is not what I want!. I just want to remove the space at the beginning and end if they exsist. Any ideas? Link to comment https://forums.phpfreaks.com/topic/134847-solved-removing-extra-space-from-array-keys-should-be-simple/ Share on other sites More sharing options...
emma57573 Posted November 30, 2008 Author Share Posted November 30, 2008 I fixed it right after posting this sorry Link to comment https://forums.phpfreaks.com/topic/134847-solved-removing-extra-space-from-array-keys-should-be-simple/#findComment-702163 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.