Quick Search:
CODE
Oracle PL/SQL Code Library
JOBS
Find Or Post Oracle Jobs
FORUM
Oracle Discussion & Chat
 PHP Code: Nice 'Read More...' links Jump to:  
Category: >> PHP Code >> Nice 'Read More...' links Bookmark and Share

<< lastnext >>

Snippet Name: Nice 'Read More...' links

Description: This will display the first 200 characters and then search for the next period (.) to stop.

Also see:
» Neatly trim a string to a set number o...
» Search array elements for a substring
» Add a period at the end of a string if...
» Count capital letters in a string
» Search All Words Of A String In mySQL
» Remove Extra Spaces From A String
» Get Query String with Javascript
» Create string by formatting an amount ...
» Search PL/SQL for a string/ key value
» INSTR (InString)
» SUBSTR (SubString)
» Generate unique strings of random numb...
» String Functions: REVERSE
» String Functions: LENGTH
» String Functions: INSTR
» String Functions: CONCAT
» String Functions: CHAR
» String Functions: INITCAP
» String Functions: LOWER
» String Functions: UPPER
» Sort comma separated string
» String to Date
» Generate random string
» De-Pluralize a String
» Add string to field
» Column copy with string replacement
» Extract part of a string
» Finding a substring in a string
» Make comma-separated list of strings
» Function For String Handling

Comment: (none)

Language: PHP
Highlight Mode: PHP
Last Modified: March 16th, 2009

<?PHP
 
ECHO SUBSTR($entry['content'],0,STRPOS($entry['content'],".",200)+1)." <a href=\"your-link\">read more</a></p>\n";
 
?>


Free
Oracle Magazine
Subscriptions
and Oracle White Papers


SQL University.net courses meet the most demanding needs of the business world for advanced education in a cost-effective manner. SQL University.net courses are available immediately for IT professionals and can be taken without disruption of your workplace schedule or processes.

Compared to traditional travel-based training, SQL University.net saves time and valuable corporate resources, allowing companies to do more with less. That's our mission, and that's what we deliver.

Click here to find out more
 
Home      :      Code Library      :      Sponsors      :      Privacy      :      Terms of Use      :      Contact Us 275 users online    © 2009 psoug.org

PSOUG LOGIN
Username: 
Password: 
Forgot your password?