Ok here is the lil' script...
<?php
$list = array("One", "Two", "One", "Two");
$item = "Two";
$items = deleteItem($list, $item);
foreach($items as $i) {
echo "$i<br>";
}
function deleteItem($one, $two) {
$check = array_search($two, $one);
unset($one[$check]);
$testing = $check;
return $testing;
}
?>
I tried $testing = $check(), but nothing returns, hrmmm what am I doing wrong? I've tried also different ways, but I won't just keep bluttering them out here... Sorry for so much bothering 😛