How to reverse a string without using Builtin Function in PHP

You wonder how to reverse a String without using a Built in Function strrev() in PHP?.
This question asked many times in Interviews.

I got a solution here.

Just see the below lines of codes.


<?php
$str = "SPIDERMAN";
$len