answersLogoWhite

0

The dot (.) operator in PHP is used to concatenate strings. For instance:

$start = "Big";

$end = "Bird";

echo $start . ' ' . $end;

This code would produce the output:

Big Bird

User Avatar

Wiki User

12y ago

What else can I help you with?

Continue Learning about Basic Math

What character allows you to concatenate strings in PHP?

To concatenate strings in PHP, you use the . (dot) character. For example: $str = "String1" . "String2";


Why we use javascript as we have a powerful scripting language php?

First of all, PHP is server side, Javascript is client side. You cannot detect mouse gestures or any clicks with PHP the same way you cannot read a file or modify it or process a form (unless you use AJAX of course). Also, although I love PHP, and it has useful extensions such as the GD library, PHP is not a very good language. Overall we use javascript and PHP because they are used for two completely different things.


What is syntax in php?

We can use php tags in different ways. <?php //php code to be written here ?> OR <? //php code ?> This tag will not work when we using editors such as macromedia dreamweaver. OR < script language="php"> //php code </script>


When should globals be used in PHP?

Problem with using global variables in php is that they lose the the assigned value in a different php file. They only keep the global variable value in the php file in which they are declared. Instead of globals try and use $_SESSION or $_COOKIE to keep value intact across different php files in a project


You use a Html button in Php on its onclick you made a function but its not responding?

this is not really a question... But I think you are asking why php functions inside a HTML button do not work. Well probably because php is rendered serverside and is passed to a user-browser afterwards.... it is possible to use php inside onclick... but only to display specific content (javascript function for instance)... it is not possible to let a user decide to run a specific php function by clicking a button.

Related Questions

What character allows you to concatenate strings in PHP?

To concatenate strings in PHP, you use the . (dot) character. For example: $str = "String1" . "String2";


How do I Install and run php server on android phone?

All you need is Termux and data connection for first use. I can't copy the post from that site but I have the link visit newstractor dot com dot ng/how-to-run-php-server-on-android-phone-or-iphone-using-termux


What is the use of a question mark in php?

It is used to tell the sever to use the PHP parser. To begin php you must use <?php, and to end it, it is ?>.


How do you use PHP in HTML?

You can't use PHP in an HTML document, but you can use HTML in PHP script.


Which sign is used to concatenate two strings?

That depends on the programming language. Most languages use the "+" sign, but a few use other signs. For example, PHP uses the dot.


How many companies use php technology?

Now a days most of the companies are getting php development technology to develop their websites.But php is still not a very secure language compare to others like java and dot net. Need more assistant visit : glitzymedia.com/web-development-services/


Where can I find ready made scripts in PHP?

This is marketplace for ready made PHP Scripts: phpscriptsonline dot com They are offering 450+ ready made PHP Scripts including with 100% source code + reselling rights... No encryption.. Use it for Multi domain


Why should you use PHP and not JSP?

Firstly, this is wrong question. The right one would be WHEN should you use PHP, not JSP? or, WHEN should you use PHP and WHEN JSP?


How do you use XML in PHP?

PHP 5 has a XML parser called SimpleXML that you could use.


How do you create a web mail script using PHP?

You can use phpMailer() Or, you can use mail() PHP function to send emails via PHP script.


What is a PHP certificate?

PHP certification is received after doing some sort of PHP course, there are many out there to do. You can use them in your CV to help you get a job in PHP.


Where could one find information about how to use PHP 5?

You can find information about how to use PHP 5 on the official PHP website, PHP.net, through the PHP 5 documentation section. Additionally, online tutorials, forums, and books dedicated to PHP programming are great resources to learn how to use PHP 5 effectively.