Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 484153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T01:16:14+00:00 2026-05-13T01:16:14+00:00

Why did the designers of PHP decide to use a full stop / period

  • 0

Why did the designers of PHP decide to use a full stop / period / “.” as the string
concatenation operator rather than the more usual plus symbol “+” ?

Is there any advantage to it, or any reason at all? Or did they just like to? :o)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T01:16:14+00:00Added an answer on May 13, 2026 at 1:16 am

    The most obvious reason would probably be that PHP inherits a lot of its syntax from Perl – and Perl uses a dot (.) for string concatenation.

    But, we can delve deeper into it and figure out why this was implemented in Perl – the + operator is most commonly used for mathematical equations – it’s only used for concatenation in languages in which the variable type can define the way in which the operator works (simple explanation, example is C#)

    var intAddition = 1 + 2;
    Console.WriteLine(intAddition); // Prints 3
    var stringConcat = "1" + "2";
    Console.WriteLine(stringConcat); // Prints "12"
    

    ^ As you can see, the + operator is used both for concatenation and addition in C#.


    Perhaps the reasoning goes lower level and is due to the boolean algebra of logic gates – + means OR in logic gates, whereas . is used as the AND operator – which makes sense when it comes to string concatenation.

    It makes sense to have two separate operators, one for concatenation and one for addition – it’s just unfortunate that these two can be mixed up due to other languages.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Compare String.Format(Hello {0}, World); with Hello {0}.Format(World); Why did the .Net designers choose a
Why did Java's designers consider it useful/necessary?
I did not use sharepoint before!! Did you use Share-point 2010 before?, MS is
Given that C# is a leans more towards a strongly typed language, why did
We are considering Microsoft DSL toolkit for creating some abstract designers. I already did
Why did java designers impose a mandate that if obj1.equals(obj2) then obj1.hashCode() MUST Be
I worked with a graphic designer that did not clone from my github account.
Did you used Dynamic websites before? you see its a good way for making
Did some searches here & on the 'net and haven't found a good answer
Did you ever have the following situation: you need to store information, but a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.