the output will be

cat sat on the

all the characters in the string $str except four characters from the left
and right will be displayed...

Regards
Ashwin Thayyullathil Surendran



On Thu, Jan 13, 2011 at 9:57 AM, Sunita Rani Pradhan <
sunita.prad...@altair.com> wrote:

> Hi All
>
>
>
>            I have a string as; $str =  "the cat sat on the mat" .
>
>
>
> How the following command works substr($str , 4, -4)  on the string ?
> What should be the output?
>
>
>
>
>
>
>
> Thanks
>
> Sunita
>
>

Reply via email to