equivalent code for the following c program in php
void main()
{
int i=5;printf("%d",i);
}

Answer Posted / rahul kumar

<?php
$i=5;
echo $i;
?>

Is This Answer Correct ?    23 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to delete a file from the system?

570


What is difference between md5 and SHA256?

537


Write down the code for save an uploaded file using php?

450


What is php full form?

549


What is empty () in php?

520






How to pass an argument to a function?

548


What is sticky form in php?

497


What is form validation in php?

521


What is the method to register a variable into a session?

486


What is a query in a database?

537


What is advanced php programming?

534


Explain what is the difference between for and foreach?

528


Do you know what is the difference between the include() and require() functions?

509


So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?

553


Is php a backend?

532