Log 4400

$activities = array(
“תיעוד שעות [זמן1]”,
“תיעוד שעות [זמן2]”,
“תיעוד שעות [זמן3]”
);

$totalTime = 0;

foreach ($activities as $activity) {
if (strpos($activity, “[“) !== false && strpos($activity, “]”) !== false) {
$timeStartPos = strpos($activity, “[“);
$timeEndPos = strpos($activity, “]”);
$timeStr = substr($activity, $timeStartPos + 1, $timeEndPos – $timeStartPos – 1);
if (is_numeric($timeStr)) {
$totalTime += intval($timeStr);
}
}
}

return $totalTime;

Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
  • Attributes
  • Custom attributes
  • Custom fields
Click outside to hide the comparison bar
Compare