| | |||||
| ||||||||
| CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Aug 2005 Location: Uk, South Yorkshire
Posts: 1,228
![]() ![]() ![]() ![]() ![]() ![]() ![]() | |
| |
| | #2 (permalink) | ||||
| Senior Member Join Date: Dec 2006 Location: England
Posts: 1,565
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Pretty useful Hitch, but it could be cut down a bit ![]() ????: NamePros.com http://www.namepros.com/showthread.php?t=277330 PHP Code: Also the default pattern is an ellipse (...) if one is not supplied like you say in this line:
Just though I'd add that
Last edited by Matthew.; 01-05-2007 at 09:42 AM.
| ||||
| |
| | #4 (permalink) |
| NamePros Regular Join Date: May 2005 Location: England
Posts: 390
![]() ![]() ![]() | Nice ![]() I found this one on php.net a while back and have used it ever since whenever i need something truncated ![]() PHP Code:
__________________ -Beaver6813.com - Web Developer Extraordinaire! |
| |
| | #7 (permalink) | ||||
| NamePros Regular Join Date: May 2005 Location: England
Posts: 390
![]() ![]() ![]() |
I used either that snippet or another i found on php.net on the Readme Generator i made to limit the lines of the content to make sure it wasn't too long as notepad doesn't automatically terminate lines itself after so many words ![]() And yeah i didn't check whether it was the same, i was just posting the one that i use in my scripts. Whilst we're at it posting examples of terminated lines, this one i used in my readme generator terminates the lines and writes the end product into a text file, PHP Code:
__________________ -Beaver6813.com - Web Developer Extraordinaire!
Last edited by beaver6813; 01-05-2007 at 12:38 PM.
| ||||
| |