Hi evry1,

suppose :

$eg = "hello";

which function do i use to know the character at index [n] of $eg?

Thanx a lot,

Ishwar

    That would be the substr() function and you can learn about it substr() at the previous link.

      substr() can do it, but in this case you can use the string index.

      $str = "hello";
      echo $str{1}; // 'e'

        Thnx ppl , you r all very helpful

        Ishwar

          Write a Reply...