i need to create string with a spaces(this is a line):
$line=$string1.$space.string2.$space.$string3 ...
$space=" ";
But finally in $line there are no spaces.
How can i insert spaces between strings?
If anyone could help me out that would be great!
Moderator: General Moderators
Code: Select all
<?php
$line = $string1 . " " . $string2 . " " . $string3;
?>Code: Select all
<?
$line = array($string1, $string2, $string3, $string4, $string5, $string6);
$newstring = implode(" ", $line);
?>