0perator Posted July 1, 2008 Share Posted July 1, 2008 lets say i explode around a space character and the persons message is $text[3], but if they have a message with more than 1 word in, it wont get the whole message... its an irc bot btw so, my question is: how do i select an array key, and everyting after it... thanks Link to comment https://forums.phpfreaks.com/topic/112779-solved-array/ Share on other sites More sharing options...
sasa Posted July 1, 2008 Share Posted July 1, 2008 try <?php $text = 'your message is: lets say i explode around a space character..'; $text = explode(' ', $text, 4); echo $text[3]; ?> Link to comment https://forums.phpfreaks.com/topic/112779-solved-array/#findComment-579235 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.