Navigation :
HomeSource code
Tutorials
RSS feeds
Articles
Wordpress plugins
Blog
Books
Software
Downloads
Hosting
manuals
Script directory
Training
Our Links
Site Sponsors :
- Load Cells
- Best MySQL & PHP Webhosting + save 50%
- κατασκευή ιστοσελίδων
Bookmark :
Links :
dropshippersfinance products
wwwstores
Downloads :
Misc :
Webmaster ResourcesOnly PHP
ScriptSearch.com
Scripts.com - Get the best scripts NOW!
AndreaPHP Programming
Using trim to get rid of whitespace
This shows how to use the trim function to remove white spaces from either side of a string
<?php
//trimming white space from a string
//our two strings
$string1 = " spaces before";
$string2 = " spaces before and after ";
//remove the whitespace
$trimmed_string1 = trim($string1);
$trimmed_string2 = trim($string2);
//display the text
echo $trimmed_string1;
echo "<br>";
echo $trimmed_string2;
?>
Books :
Sponsors :
Random Code :
Dynamic title tags(Wordpress)check for a valid date(date and time)
Using trim to get rid of whitespace(string)
Random Article :
PHP in the Command Linehow to implement a simple cms using PHP and MySQL
Network:
Programming resourcesTutorials directory
Hosting resources
ASP site
Domain names
Progged
Maxi directory
bigarticle : free articles
A Code
Code N Tutorials
Del.icio.us
Digg
Furl
Newsvine
Netscape
Reddit
StumbleUpon
Technorati
Squidoo
Windows Live
Yahoo MyWeb
Ask
Google