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? 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(). 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. Link to comment https://forums.phpfreaks.com/topic/162769-solved-data-in-array/#findComment-858945 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.