Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <html lang="en-US">
- <head>
- <meta charset="UTF-8">
- <title></title>
- </head>
- <body>
- <?php
- //class 1
- echo "hi we have done". '<br>';
- //classs 3
- $rohim = 10;
- $korim = 20;
- echo $rohim + $korim . '<br>';
- $rohim = "Hlw world";
- echo $rohim . '<br>';
- $one = "He goes";
- $two = "to school";
- echo $one . " " .$two .'<br>';
- $integerpr = 15;
- $stringpr = " I am well";
- echo $integerpr . $stringpr . '<br>';
- $floatone = 45.9;
- $floatwo = 35.9;
- echo $floatone + $floatwo . '<br>';
- $arraypr = array("Hllo", "World", 59);
- echo $arraypr[2] ." ".$arraypr[0]." ".$arraypr[1]. "<br>";
- //class 4
- $namearray = array("bilai" => "Tom", "idur" => "Jerry", "series" => "Cartoon", "Number" => 76);
- echo $namearray["Number"] . "<br>";
- function one($Changeable, $another){
- echo $another . " " . $Changeable . "<br>";
- }
- one("Bangladesh", "Hello") ;
- function two($Changeable, $another){
- return $another . " " . $Changeable . "<br>";
- }
- echo two("Bangladesh", "Hello") ;
- function soft($software){
- return $software;
- }
- function tech($technlogy, $fst_part){
- return soft($fst_part) . " " . $technlogy . " ";
- }
- function it ($information, $technology, $first_part, $second_part) {
- return tech($second_part, $first_part).$information. " " .$technology;
- }
- echo "I Am Learning PHP From " . it("IT", "By-Sujan-vai", "Soft", "Tech");
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement