Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

simple php question

 
   Web Hosting Problem Solving Community! (Home) -> Webmaster RSS
Next:  A Book Banner Exchange Network?  
Author Message
kreten1983

External


Since: Nov 21, 2003
Posts: 8



(Msg. 1) Posted: Sun Nov 23, 2003 12:13 am
Post subject: simple php question
Archived from groups: alt>www>webmaster (more info?)

how can i join two strings in one??

 >> Stay informed about: simple php question 
Back to top
Login to vote
sharif1

External


Since: Oct 20, 2003
Posts: 44



(Msg. 2) Posted: Sun Nov 23, 2003 2:53 am
Post subject: Re: simple php question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Platypus" <kreten1983.TakeThisOut@yahoo.com> wrote in message
news:bpoft5$j2n$1@bagan.srce.hr...
 > how can i join two strings in one??
 >

I would use a variable, or concatenate.

Example 1: Variables-

$str1 = 'string 1 ';
$str2 = 'string 2';
echo $str1 . $str2;

This would output:

string1 string2

Example 2: Concatenate-

echo 'string 1 ' . 'string 2';

Simple Smile
--
Sharif Tanvir Karim
<a style='text-decoration: underline;' href="http://www.onlyonxbox.net" target="_blank">http://www.onlyonxbox.net</a>><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: simple php question 
Back to top
Login to vote
who

External


Since: Apr 29, 2004
Posts: 1010



(Msg. 3) Posted: Sun Nov 23, 2003 5:33 pm
Post subject: Re: simple php question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Platypus" <kreten1983.DeleteThis@yahoo.com> wrote in message
news:bpoft5$j2n$1@bagan.srce.hr...
 > how can i join two strings in one??

You could use a knot.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: simple php question 
Back to top
Login to vote
spamblocked1

External


Since: Sep 19, 2003
Posts: 3499



(Msg. 4) Posted: Sun Nov 23, 2003 5:33 pm
Post subject: Re: simple php question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Bill Logan wrote:
 > "Platypus" <kreten1983 RemoveThis @yahoo.com> wrote in message
 > news:bpoft5$j2n$1@bagan.srce.hr...
  >> how can i join two strings in one??
 >
 > You could use a knot.

although a splice is more reliable.

--
William Tasso - <a style='text-decoration: underline;' href="http://WilliamTasso.com" target="_blank">http://WilliamTasso.com</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: simple php question 
Back to top
Login to vote
davidvb3

External


Since: Nov 10, 2003
Posts: 272



(Msg. 5) Posted: Sun Nov 23, 2003 9:07 pm
Post subject: Re: simple php question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Sharif Tanvir Karim wrote:

 > "Platypus" <kreten1983 DeleteThis @yahoo.com> wrote in message
 > news:bpoft5$j2n$1@bagan.srce.hr...
 >
  >>how can i join two strings in one??
  >>
 >
 >
 > I would use a variable, or concatenate.
 >
 > Example 1: Variables-
 >
 > $str1 = 'string 1 ';
 > $str2 = 'string 2';
 > echo $str1 . $str2;
 >
 > This would output:
 >
 > string1 string2
 >
 > Example 2: Concatenate-
 >
 > echo 'string 1 ' . 'string 2';

Another way...

$string = 'Hello ';
$add = 'World';
$string .= $add;
// Output is Hello World.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: simple php question 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]