Thread
:
PHP String Functions With Examples
View Single Post
#
4
(
permalink
)
05-10-2008, 02:08 AM
saravanan
D-Web Sr.Programmer
Join Date: Jul 2007
Posts: 181
Re: PHP String Functions With Examples
The explode() function breaks a string into an array.
example:
PHP Code:
<?php
$str
=
"Hello world. It's a beautiful day."
;
print_r
(
explode
(
" "
,
$str
));
?>
output
Array
(
[0] => Hello
[1] => world.
[2] => It's
[3] => a
[4] => beautiful
[5] => day.
)
saravanan
View Public Profile
Send a private message to saravanan
Find all posts by saravanan