yhi Posted May 20, 2014 Share Posted May 20, 2014 i want do do something like this i am using filegetcontent & it give me something like <tag1><tag2>abc</tag2><tag3>....[some junk]</tag5></tag1> & in another case it give me <tag1><tag2>123</tag2><tag3>....[some junk]</tag5></tag1> so i want to do something like this if with filegetcontent i get abc { do this } if with filegetcontent i get 123 {do that} else {die();} how to do that ??? plz help me Quote Link to comment Share on other sites More sharing options...
cyberRobot Posted May 20, 2014 Share Posted May 20, 2014 You could use strpos() to see if the string contains "abc" or "123": http://www.php.net/strpos Quote Link to comment Share on other sites More sharing options...
yhi Posted May 20, 2014 Author Share Posted May 20, 2014 You could use strpos() to see if the string contains "abc" or "123": http://www.php.net/strpos thxx dude i will try it Quote Link to comment 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.