$myArray = array();
array_push($myArray, "' a'");
use Framework\ArrayMethods as ArrayMethods;
print_r(($myArray));
print_r(ArrayMethods::lengtOfElements($myArray));
The output will be:
Array ( [0] => ' a' ) Array ( [0] => 8 )
So there is only one whitespace before a in the printed string, but the strelen returns 8?
How to make it print ‘ a’ ?
If you want to view in your browser wrap this:
So it has
<pre>tags: