Extracting a Fixed Number of Charactors


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. echo substr($row['article'],0,100);

URL: http://books.google.co.uk/books?id=EjC8D1hJ2FsC&pg=PA382&lpg=PA382&dq=php+show+section+of+text+characters&source=bl&ots=kuqGMk9Zia&sig=4o8iTPg1U4QjfGmtFi7Tb-A1jC8&hl=en&ei=S_RBSrzyHdqhjAf_7a3zCw&sa=X&oi=book_result&ct=result&resnum=1

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.