Advertisement
Virajsinh

PhP_07

Feb 8th, 2018
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.71 KB | None | 0 0
  1. <html>
  2. <head>
  3.     <title> Function </title>
  4. </head>
  5. <body align='center'>
  6. </body>
  7. </html>
  8. <?php
  9.  
  10. function abc($tg, $text)
  11. {
  12.     $tg;
  13.     $test;
  14.     echo "<".$tg.">".$text."</".$tg.">";
  15.     echo "<hr>";
  16. }
  17.  
  18. abc("b", "Bold");
  19. abc("i", "Italic");
  20. abc("u", "Underline");
  21. abc("s", "Strick");
  22.  
  23. //function_exists(); use for check function available or not in This Php Page
  24.  
  25. if (function_exists('abc'))
  26. {
  27.     echo "functions are available.<br />\n";
  28. }
  29.  
  30. else
  31. {
  32.     echo "functions are not available.<br />\n";
  33. }
  34.  
  35. //check abcd function available or not in This Php Page
  36. if (function_exists('abcd'))
  37. {
  38.     echo "functions are available.<br/>";
  39. }
  40.  
  41. else
  42. {
  43.     echo "functions are not available.<br/>";
  44. }
  45.  
  46. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement