Files
citrus-cms/app/Functions/remove-item-by-joint-no.php
2026-04-28 21:14:25 +03:00

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
}
}
}
}
}
?>