coolbeansdude51 Posted December 6, 2007 Share Posted December 6, 2007 OK. My first post! I am hoping I am not just retarded. I need to search a string for two variables then grab the data in between. This is what I am thinking so far. Tell me if I am completely off base. $dear = strlen('Dear'); $comma = strlen(','); $sum = $comma - $dear; $password = substr($body, 0); I did that but it didn't work. Does anyone know what I am doing wrong? Your supreme wisdom and knowledge is needed! Thanks, Coolbeansdude51 Quote Link to comment https://forums.phpfreaks.com/topic/80426-searching-in-a-string/ Share on other sites More sharing options...
rajivgonsalves Posted December 6, 2007 Share Posted December 6, 2007 what exactly is your actual string that your searching ? Quote Link to comment https://forums.phpfreaks.com/topic/80426-searching-in-a-string/#findComment-407778 Share on other sites More sharing options...
coolbeansdude51 Posted December 6, 2007 Author Share Posted December 6, 2007 Its the body of an email. Quote Link to comment https://forums.phpfreaks.com/topic/80426-searching-in-a-string/#findComment-407779 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.