ResumesInn
Welcome  ,
Interview Questions >> PHP >> What will be the output ? explain ...
Next Question Previous Question

What will be the output ? explain ...

<?php
$a=0123;
$b="0123";
echo $a."<br />";
echo $b."<br />";
?>


  Prasanjeet Ghosh wrote ...
$a=83(octal )
$b=0123(String)
  Joseph Ranjan wrote ...
Output Will Be ...

83
0123

Explanation :

In $a the value will be treated as octal and respective value will get print . PHP Interpreter treats numbers beginning with 0 as octal .

In $b the value will be treated as string and it will be printed as it is . If we use single quotes also result will be the same .


Login to write answer for this question !
Want to place your ads in this website ?
50USD Per Month for single placement. Contact Us
All Rights Reserved . Developed by SJRANJAN