1.<?php
echo'bsfjbsnmfbs';
?>
2.<?
ech'hjndfjkshf';
?>
3
<?
echo'naskfdjnask';


three programs are exected but which is beter why

Answer Posted / sandhya

<?php
echo'bsfjbsnmfbs';
?>
is the correct way to execute.

Why because..
In asp also the tags will be <? ?> like this, some servers
don't know whether it is php or asp.

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is cms php?

505


What is difference between compile time and run time polymorphism?

530


How can image properties be retrieved in php?

543


Do I need to install php after xampp?

539


What is the use of post in php?

508






How to get best php developer Experience in Php with Sugar CRM / VTiger.

3975


What are the popular content management systems (cms) in php?

479


How are sessions maintained?

545


How can we change the maximum size of the files to be uploaded?

516


What is the main difference between require() and include()?

478


How many types of errors in php?

568


Tell me how can we pass the variable through the navigation between the pages?

529


What function should you use to join array elements with a glue string?

554


What do the initials of php stand for?

573


What is multidimensional array in php?

547