strange requirement with PHP
Posted: Sat Feb 21, 2009 10:16 pm
hello friends,
i have recently started coding PHP, so i am still at beginners stage, so please bear me if you found this very silly question.
What i want is to add a particular code after say first 100 characters in my post.
say i have a post of 1000 words and after initial say 100 words i want to add a new tag of ream more, that tag is <!--more-->.
so after first 100 characters this tag should come and then the rest of post should.
so is there any function in PHP which let me allow few words in somewhere middle of any post?
Waiting for the reply and thanking of you in advance.
Regards,
Hemanshu Patel
http://www.tutorialsforu.info
http://www.articlesdir.co.cc
i have recently started coding PHP, so i am still at beginners stage, so please bear me if you found this very silly question.
What i want is to add a particular code after say first 100 characters in my post.
say i have a post of 1000 words and after initial say 100 words i want to add a new tag of ream more, that tag is <!--more-->.
so after first 100 characters this tag should come and then the rest of post should.
so is there any function in PHP which let me allow few words in somewhere middle of any post?
Waiting for the reply and thanking of you in advance.
Regards,
Hemanshu Patel
http://www.tutorialsforu.info
http://www.articlesdir.co.cc