Examveda
Examveda

What will be the output of the following PHP code ?
<?php
$one = 1;
print($one);
print $one;
?>

A. 01

B. 11

C. 10

D. Error

Answer: Option B

Solution(By Examveda Team)

Print can be used with or without parantheses.

This Question Belongs to PHP >> Operators And Expressions In Php

Join The Discussion

Related Questions on Operators and Expressions in php