Easy PHP Larn (Part-4)

Easy PHP Variable Part 4 and php Comment this episode, we discuss the sbagatamagata karechilamaaja we'll talk about Embedding. 
HTML within PHP CODE: PHP code inside HTML code, such as HTML for use inside and yayatemani php code in the HTML file's extension to sambhabatabe used to be a php. the extension. The next part (.html to .php)
Example: file name: index.html
1
2
3
4
5
6
7
8
9
10
<! DOCTYPE HTML>
<html lang = "en-US" >
<Head>
<meta charset = "UTF-8" >
<Title> </ title>
</ Head>
<Body>
<B> My name is XYZ. </ B>
</ Body>
</ Html>
Who index.html to index.php.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<? Php
$ NAME "XYZ" ;
?>
<! DOCTYPE HTML>
<html lang = "en-US" >
<Head>
<meta charset = "UTF-8" >
<Title> </ title>
</ Head>
<Body>
<b> My NAME is <? php  echo  $ NAME  ?> </ b>
</ Body>
</ Html>
This variable is a variable with the $ name has been saved as a text namatake. The pH of each of the P-code to start at the beginning hayatai to use php tag <? Php and end?> Has been used. 
The <? Php echo $ name?> The $ name variable by echo $ Calling hayechetai inside which is the name of the show. 
this is the variable that we can use again and again.

PHP inside HTML CODE: php code inside, and we can use html code. 
Example: <h1> My Name Is Goni </ h1> html code and this will be done at the php code.
1
2
3
4
5
<? Php
echo  "<h1>" ;
echo  "My Name Is Goni" ;
echo  "</ h1>" ;
?>
Here are three ways that we have a code. Prakhame <h1> has been a call by the echo. The second part of the text was a call by the echo. 3rd part by the echo </ h1> has put an end to.
If you can write ekalaine by echo ..
1
2
3
<? Php
echo  "<h1>" "My Name Is Goni" "</ h1>" ;
?>
To echo echo is more than one of each. With add. Ex: "". "". "" 
Basic php to clear  w3schools  can visit. 
One day, he did not talk much with the more difficult to digest. 😥
I Facebook:  Leo Syed
Previous
Next Post »