Month: March 2012

How to reverse a string without using Loops and Builtin Function in PHP

Do you know how to reverse a string without using any loops or built in function in php?

There is an amazing recursive function will do this magic trick.

See the below lines of codes:


<?php

function myreverse($str)
{
return 

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 
Theme: Overlay by Kaira
Agurchand