Hi evry1,
suppose :
$eg = "hello";
which function do i use to know the character at index [n] of $eg?
Thanx a lot,
Ishwar
Hi evry1,
suppose :
$eg = "hello";
which function do i use to know the character at index [n] of $eg?
Thanx a lot,
Ishwar
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