Kasuke_Akira Posted March 23, 2007 Share Posted March 23, 2007 How would i grab the first value [0] in an array, check to see if any value after it[1][..] is the same, and then move to the next one[1], checking if to see if any value after that one [2][..] is the same? Quote Link to comment Share on other sites More sharing options...
per1os Posted March 23, 2007 Share Posted March 23, 2007 foreach ($array as $val) { if (array_search($oldVal, $val)) print "Same"; $oldVal = $val; } http://us3.php.net/manual/en/function.array-search.php Quote Link to comment Share on other sites More sharing options...
Kasuke_Akira Posted March 23, 2007 Author Share Posted March 23, 2007 haha feel stupid..thanks 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.