title: Find out issues about miswritten variables or any other bug, in php?
body: <p>I had a code where a variable was written with "D" instead of "d", and it took me some time to figure out the code was not the problem, but how the variable was written.  For example here : I had to use <code>echo 'aa';</code> to find the wrong line :</p>
  
  <pre><code>$lastday = clone $firstDay;
  $lastday-&gt;modify("last day of this month");
  $offsetInit = $firstDay-&gt;format("w");
  $offsetEnd = 6 - $lastday-&gt;format("w");
  $firstDay-&gt;modify("-$offsetInit days" );
  echo "aa";
  $lastDay-&gt;modify("+$offsetEnd days"); //Day instead of day
  echo " bb";
  $initWeek = clone $firstDay;
  $endWeek = clone $firstDay;
  $endWeek-&gt;modify("+7 days");
  </code></pre>
  
  <p>Is there a way, a tool on Chrome or anything like this, to figure out were the issue can come from. I am using Netbeans and the variable was not highlighted.   </p>
  
  <p>Thanks</p>