13 lines
467 B
PHP
13 lines
467 B
PHP
<?php
|
|
function removeItemBySpoolNoJointNo(&$jointDatas, $spoolNoJointNoToRemove) {
|
|
foreach ($jointDatas as &$fluidCodes) {
|
|
foreach ($fluidCodes as &$items) {
|
|
foreach ($items as $key => $item) {
|
|
if (isset($item['spool_no_joint_no']) && $item['spool_no_joint_no'] == $spoolNoJointNoToRemove) {
|
|
unset($items[$key]); // Belirli bir koşula göre değeri sil
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
?>
|