947740 Posted June 18, 2009 Share Posted June 18, 2009 Are there any simple functions I could use to determine if a string is a value in an array? Quote Link to comment https://forums.phpfreaks.com/topic/162769-solved-data-in-array/ Share on other sites More sharing options...
akitchin Posted June 18, 2009 Share Posted June 18, 2009 generally speaking, the PHP manual is your best first stop to look for new functions. look at in_array(). Quote Link to comment https://forums.phpfreaks.com/topic/162769-solved-data-in-array/#findComment-858944 Share on other sites More sharing options...
Jibberish Posted June 18, 2009 Share Posted June 18, 2009 also array_search() is a good function if you then want the corresponding key. Quote Link to comment https://forums.phpfreaks.com/topic/162769-solved-data-in-array/#findComment-858945 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.