Open Source Tutorials - Open Source Training
Open source training & tutorials from experienced, passionate people
chrome icon firefox icon ie icon opera icon safari icon Sings in these Browsers
A- A A+

By A Web Design

Welcome, Guest
Username Password: Remember me

An array into a string
(1 viewing) (1) Guest
All your queries regarding
PHP Installation,
Binding Apache-PHP-MySQL,
and tonnes more... will be solved in this forum
  • Page:
  • 1
TOPIC:

An array into a string

An array into a string 1 year, 6 months ago #307

  • patrica
  • OFFLINE
  • Junior Boarder
  • Posts: 28
  • Karma: 0
hi.. can anybody tell me

How do I turn an array into a string?

Re: An array into a string 1 year, 2 months ago #545

  • palak
  • OFFLINE
  • Senior Boarder
  • Posts: 55
  • Karma: 0
Using implode function you can convert an array into a string..

For example:
<?php
$myarray = array("Hello","World");
$mystring = implode(" ", $myarray);
echo "$mystring";//Hello World
?>
  • Page:
  • 1
Time to create page: 2.14 seconds
OSV Newsletter


Receive HTML?

NOTE: To prevent subscription to the OSV newsletter, uncheck the checkbox above.
Guest Blog for OSV
Free Ebook Download