Advertisement
Guest User

Untitled

a guest
Jun 25th, 2015
392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. <!DOCTYPE HTML>
  2. <html lang="en-US">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title></title>
  6. </head>
  7. <body>
  8. <?php
  9.  
  10. //class 1
  11.  
  12. echo "hi we have done". '<br>';
  13.  
  14.  
  15. //classs 3
  16. $rohim = 10;
  17. $korim = 20;
  18. echo $rohim + $korim . '<br>';
  19.  
  20. $rohim = "Hlw world";
  21. echo $rohim . '<br>';
  22. $one = "He goes";
  23. $two = "to school";
  24. echo $one . " " .$two .'<br>';
  25. $integerpr = 15;
  26. $stringpr = " I am well";
  27. echo $integerpr . $stringpr . '<br>';
  28. $floatone = 45.9;
  29. $floatwo = 35.9;
  30. echo $floatone + $floatwo . '<br>';
  31. $arraypr = array("Hllo", "World", 59);
  32. echo $arraypr[2] ." ".$arraypr[0]." ".$arraypr[1]. "<br>";
  33.  
  34.  
  35. //class 4
  36.  
  37.  
  38. $namearray = array("bilai" => "Tom", "idur" => "Jerry", "series" => "Cartoon", "Number" => 76);
  39. echo $namearray["Number"] . "<br>";
  40.  
  41. function one($Changeable, $another){
  42.  
  43. echo $another . " " . $Changeable . "<br>";
  44. }
  45.  
  46. one("Bangladesh", "Hello") ;
  47.  
  48. function two($Changeable, $another){
  49.  
  50. return $another . " " . $Changeable . "<br>";
  51. }
  52.  
  53. echo two("Bangladesh", "Hello") ;
  54.  
  55. function soft($software){
  56.  
  57. return $software;
  58. }
  59.  
  60. function tech($technlogy, $fst_part){
  61.  
  62. return soft($fst_part) . " " . $technlogy . " ";
  63. }
  64.  
  65. function it ($information, $technology, $first_part, $second_part) {
  66.  
  67. return tech($second_part, $first_part).$information. " " .$technology;
  68. }
  69.  
  70. echo "I Am Learning PHP From " . it("IT", "By-Sujan-vai", "Soft", "Tech");
  71. ?>
  72. </body>
  73. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement