Menu
Hi all
I have a small text and I want to slice up till the full stop.Something like this.
$str=”Hello John How are you.I am fine.I have not seen you so many days.”;
I have 2 rows.In first row it will display upto first (.) and left of the string will be displayed in the 2nd row.
So the o/p will be
1st row:
Hello John How are you.
2nd row:
I am fine.I have not seen you so many days.
Thats it.I think it may be done through substr function but really I dont have any idea about how to check the 1st full stope
I was using like this before
$str= substr($str,0,100);
Please suggest me an idea.
Thanks in advance for your co-operation……Raj