<?php
// include "../actions/dbPDO.php";
// $maxN = $db->prepare("SELECT contract_id , time_out , time_in FROM `contracts` WHERE branch = 2 AND date_in < '2017-8-26'");
// $maxN->execute();
// if($maxN->rowCount()> 0){
//   $act = 0;
//   while($row = $maxN->fetch())
//       {
//   $contract_id = $row['contract_id'];
//   $time_in = $row['time_in'];
//   $time_out = $row['time_out'];
//   $time_in = date('H:i',  strtotime($time_in. ' - 2 hours'));
//   $time_out = date('H:i',  strtotime($time_out. ' - 2 hours'));
//
//   $up = $db->prepare("UPDATE contracts set time_out = ? , time_in = ? Where contract_id = ?") ;
//   $up->bindParam(1,$time_out);
//   $up->bindParam(2,$time_in);
//   $up->bindParam(3,$contract_id);
//   if($up->execute()){$act = $act + 1 ;}
//   }
// }
// echo $act;
// '/[^a-zA-Z0-9_%\[().\]\\/-]/s'
$String = "/قماش حلوبات ,<>";
// preg_replace('/^[-a-zA-Z0-9_\p{Arabic}-\s]*$/u', '', $String);
$String = preg_replace('/[^a-zA-Z0-9_%\p{Arabic}\[().\]\\/-]/s', '', $String);

echo $String;


?>
