I am receiving an error Uninitialized string offset:
this is my code
$post = "Test";
$strtext = strlen($post);
for($i=strlen($post);$i>=0;$i--)
{
echo $post[$i];
}
I reviewed my code and I think that all are correct, but I don't think its perfect because it has an error.
result must be tseT without an error. and I am not allowed to use error_reporting(0);
This is our assignment tbh, reverse the string using 1 for loop only.
Thank you for your answers.