Skip to content
Advertisement

Reverse a string in php without using any string function

In yesterday Interview I was asked that how to reverse a string with out using any string function like strrev() or strlen(). I found this example on website but it gives error.is it possible to do this without strlen().

Uninitialized string offset: -1 in D:xampphtdocsPhpProject1index.php on line xx

JavaScript

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement