What will be the output of the following PHP code?

🎲 Try a Random Question  |  Total Questions in Quiz: 90  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
PHP Programming Basics Practice Test: Object Tools and Design and Variables in PHP — practice the complete quiz, review flashcards, or try a random question.

Quiz questions on object tools and their design and variables and their syntax. In PHP, objects are compound data types that can store data and functions together in a single variable. Objects can be instances of either a built-in or user defined class. A class is a blueprint for creating objects with specific properties and methods. For example, a class called Car can create objects such as Mercedes, BMW, and Skoda.  Here are some basic concepts of object-oriented programming (OOP) in PHP: Class: A blueprint that holds objects along with their behavior and properties Data Members:... Show more

What will be the output of the following PHP code?<br><?php<br>$x = 4;<br>$y = 3;<br>function fun($x, $y)<br>{<br>$z = $x + $y / $y + $x;<br>echo "$z";<br>}<br>echo $x;<br>echo $y;<br>echo $z; <br>fun(3, 4);<br>?>