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 Quote 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]; ?> Quote Link to comment https://forums.phpfreaks.com/topic/112779-solved-array/#findComment-579235 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.