Navigation :
HomeSource code
Tutorials
RSS feeds
Articles
Wordpress plugins
Blog
Books
Software
Downloads
Hosting
manuals
Script directory
Training
Our Links
Site Sponsors :
- Load Cells
- mothers day replica rolex watches today
- Free partition data recovery utilities
- cheap reseller hosting
- MySQL & Best PHP Web Hosting + save 50%
Bookmark :
Links :
wwwstoreslow cost magazines
software directory
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 :
Yahoo news(xml)Directory browser(file system)
GD exists(image)
Random Article :
Clickbank Security Using PHPMore Autoresponders With PHP
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