What will be the output of the following code? <?php $foo = 'Bob'; $bar = $foo; $bar = "My name is $bar"; print $bar; print $ foo; ?> a. Error
b. My name is BobBob
c. My name is BobMy name is Bob
d. My name is Bob Bob
2 answers:
Answer: b. My name is BobBob
Explanation:
$foo = 'Bob'; // Assigns foo variable the value Bob$bar = $foo; // Assigns the value of foo to bar$bar = "My name is $bar"; // changes the $bar this is the way to include variables directly in the string.print $bar; // this prints My name is and moves to the variable $bar which prints the value of $bar which is the value of $foo i.e. Bobprint $foo; // prints another Bob
Answer:
c
Explanation:
error
You might be interested in
ANSWER- True
Data transformation is defined as
the process of converting data or information from one format to another.
Usually, the data or information is changed from the original format (The
format of a source system) into the required format of a new destination
system; a format that fits the objectives of the research/study.
Paragraphs are usually separated by blank space.
Hope this is what you were looking for :)
A good website to learn coding is called Lynda.com. It costs money but its well worth it!
Answer:
i am still a beginner in this but i hope it helps.
add scanner object; declare string FavColour; print msg to ask user for input print msg (" your favourite colour is " + FavColour)