title: If inside switch case
body: <pre><code>foreach ($row as $key =&gt; $value){
  switch ($key) {
  case 'url';
  echo "$value";
  break;
  case 'tipo';
  echo "&lt;div class='ear'&gt;$value&lt;/div&gt;";
  break;
  case 'data_da':
  echo "dal $value ";
  break;
  case 'data_a':
  echo "fino al $value ";
  break;
  case 'citta':
  echo "a $value ";
  break;
  case 'titolo':
  echo "$value ";
  break;
  
  }
  </code></pre>
  
  <p>i need to print only data_da if data_a is equal to data_da..</p>
  
  <p>how can i insert an if case ? and i need also to show the datate in this format d/m/y</p>