Click here to Skip to main content
16,012,223 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
what is the bug in php code:


echo i am here :
?>
Posted
Updated 28-Mar-10 0:48am
v2

1 solution

in the above code php tag is written incorrectly.
the correct way to write php tag is

<? php

// any php code

?>


OR

<?

// any php code

?>


also the echo function is not written correctly. the string which you want to be displayed on the web page must be placed in quotes.

quotes are not required when we wants to print value of a variable.
at last correct form of writing the above code,

<?php
echo "i am here";
?>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900