title: Use of undefined constant ​ - assumed '​' in php
body: <pre><code>    &lt;?php
           $f=$_POST['rdate'];
            echo $f."&lt;/br&gt;";
             $from=$f.'-01 00:00:00';
             $dayyy=explode("-",$f);
             //print_r($dayyy);
             $year=$dayyy[0];
             echo $year."&lt;/br&gt;";
             $mm=$dayyy[1];   
              echo $mm."&lt;/br&gt;";
          $mons = array("01" =&gt; "Janauary", "02" =&gt; "February", "03"=&gt;"March", "04"=&gt;"April", "05"=&gt;"May", "06"=&gt;"June", "07"=&gt;"July", "08"=&gt;"August", "09"=&gt;"September", "10"=&gt;"October", "11"=&gt;"November", "12"=&gt;"December");
          print_r($mons);
          /*foreach($mons as $mm)
          {
            echo $mm; 
          }*/
          $month_name = $mons[$mm];
          echo "&lt;/br&gt;".$month_name;
        $days=cal_days_in_month(CAL_GREGORIAN, $mm, $year);
          $dayss= $days-1;
          echo $dayss."&lt;/br&gt;";
          $dayys=' + '.$dayss.' days' ;
          $var=$from.$dayys;
          //echo $var."&lt;/br&gt;";
          echo "Last".date('Y-m-d 23:59:59',strtotime($var));​
  
          ?&gt;
  </code></pre>
  
  <p>i'm getting  Use of undefined constant ​ - assumed error in the above code.
  I guess i got this issue due to non breaking spce but don't know where i left that?
  Kindly help!!</p>
  
  <hr>