How many ways to include variables in double-quoted strings in php?



How many ways to include variables in double-quoted strings in php?..

Answer / Piyush Choudhary

You can include variables in a double-quoted string using either curly braces or concatenation. Here's an example for each method:n`n// Using Curly Bracesn$var = "example";necho "I have the value: $var";nn// Using Concatenationn$var = "example";necho "I have the value: ".$var;n`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

Is php harder than javascript?

1 Answers  


What is the mysql injection?

1 Answers  


What is difference between compile time and run time polymorphism?

1 Answers  


Explain the importance of the function htmlentities.

1 Answers  


How many bootable file in O/S - XP,2000, and 98. which are the files.

1 Answers   IBM,


What is the purpose of destructor ?

2 Answers  


What is .htaccessfile and use of this file

5 Answers  


how can we retrive value from one database server and store them another database server using php?

3 Answers  


What are php magic quotes?

1 Answers  


hey i m a trainee n jus wanted to ask that initially i was given the opportunity for .NET bt that project is abt to complete , nw i m asked to join a project of php on linux which is about to start , so wt say . is it a wise decision to join this project . will i be having job opportunities when i l complete my training after 4 months ? Plz suggest something ASAP .

1 Answers  


How to create an array of a group of items inside an html form?

1 Answers  


how to upload a file in php.write a syntex for that

1 Answers   Net Solution,


Categories