php explode() and wordwrap()
by alamster in March 3rd, 2008
Whats the different of explode() and wordwrap() ?
Answer :
just see this example for explode()
<?php
$birthday=’1998-12-11′;
//we need to split the component to date, month and year
$day_parts=explode(’-',$birthday);
// we use - as tool to separate, now print
$date_component=$day_parts[2];
$month_component=$day_parts[1];
$year_component=$day_parts[0];
?>
Wordwrap will ‘wrapping’ user input, like formatting crazy user who type ‘aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa’ till he satisfied and brake our guestbook table.
Just make sure to add number bigger than 0 to enable wordwrap.
Freelance Project:
- SEO for http://www.squidoo.com/Dress-it-up-for-Christmas by nooranwer
- Convert my website to Joomla by rgiezen
- flash - character animation by ecpwebmedia
- full time expert php coders needed by seowebsolutions
- Extract all US Doctor to a CSV File by mdudley
- oscommerce by consultingpalace
- Zencart Customization by hakkir
- 100% CSS Website using Ruby on Rails by lsmith79
- MySpace Friends for Proxy Sites by tibbie
- Ecommerce exams help require by DianaGroup



No Comment
Random Post
Leave Your Comments Below