title: string manipulation, reversion palindrome
body: <p>Let's categorize this for <em>PHP</em> only.</p>
  
  <p>Ok so I had an interview yesterday for a <em>Senior Software Developer</em> role. I can't remember the question very well but I try to write it as much as I remember.</p>
  
  <p><strong>Question;</strong></p>
  
  <p>Write a function that takes a string as the input and return true if traversed, false if not.</p>
  
  <p>Requirements; (as much as I remember)
      - Only one input (string) type.<br>
      - String param must be passed by reference.<br>
      - No variable within the function, he means that if the param is called <em>$str</em> manipulation should be done on that, didn't like me to use a second variable to set <em>reverseStr</em> etc.<br>
      - No looping every character in the string, he specifically said not to loop thru every character in the string.<br>
      - No Built-in PHP function can be used, i think he was fine with (strlen)  </p>
  
  <p><strong>My Answer;</strong> (nope he didn't like it)</p>
  
  <pre><code>$str = 'this is testing';
  $length = strlen($str);
  $reverseStr = '';
  for($i=$length-1; $i&gt;=0; $i--) {
   $reverseStr .= $str[$i];
  }
  </code></pre>
  
  <p>So while this does the job somewhat, he didn't like me to go thru every character to get the reverseStr. I am guessing I needed to think about a recursive solution get the last character of the string and index etc.etc. but I am thinking about these as I am writing this, too late!</p>
  
  <p>What you guys thinking?</p>