ok, first this sounds really noobish, but say i have an array, and i want to find if any of the elements in the array have a specified value, how would i do that?
secondly, how would i remove an element from an array?
array questions.
Moderator: General Moderators
Code: Select all
for($i=0; $i<count($myarray); $i++)
{
if ($myarray[$i] = 'some value')
{
// Do something
}
}$myarray[$i] = 'this string';
hope this helps.