trq Posted June 9, 2009 Share Posted June 9, 2009 It explodes the string contained within $_POST['textarea'] by the newline character into an array. Link to comment https://forums.phpfreaks.com/topic/161478-how-to-add-to-an-array/page/2/#findComment-852199 Share on other sites More sharing options...
ollie007 Posted June 9, 2009 Author Share Posted June 9, 2009 haha i think i get it lol explode removes !!! $post = explode("\n", $post); removes the space? or linebreak? $post = explode(",", $post); removes the comma and adds to the array? Link to comment https://forums.phpfreaks.com/topic/161478-how-to-add-to-an-array/page/2/#findComment-852200 Share on other sites More sharing options...
trq Posted June 9, 2009 Share Posted June 9, 2009 $post = explode("\n", $post); removes the newline and adds whatever is on each side of it to the array. $post = explode(",", $post); removes the coma and adds whatever is on each side of it to the array. Link to comment https://forums.phpfreaks.com/topic/161478-how-to-add-to-an-array/page/2/#findComment-852201 Share on other sites More sharing options...
ollie007 Posted June 9, 2009 Author Share Posted June 9, 2009 ty all much better than reading from the website lol. took a while but we got there !! Link to comment https://forums.phpfreaks.com/topic/161478-how-to-add-to-an-array/page/2/#findComment-852207 Share on other sites More sharing options...
trq Posted June 9, 2009 Share Posted June 9, 2009 much better than reading from the website lol. You have to be kidding me? Learning to use the manual is a must for anyone planning on getting anywhere with programming. Link to comment https://forums.phpfreaks.com/topic/161478-how-to-add-to-an-array/page/2/#findComment-852211 Share on other sites More sharing options...
ollie007 Posted June 9, 2009 Author Share Posted June 9, 2009 i only need specify areas lol Link to comment https://forums.phpfreaks.com/topic/161478-how-to-add-to-an-array/page/2/#findComment-852215 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.