DAMMAK iyed - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of DAMMAK iyed.php

  1. <!DOCTYPE html>
  2. <?php $time_start= microtime(True);?>
  3. <html>
  4. <head>
  5.     <meta charset="utf-8">
  6.     <title>Titre de la page</title>
  7.     <?php
  8.     $infos['nom'] = "Dupond";
  9.     $infos['prenom'] = "Jean";
  10.     $infos['age'] = 25;
  11.     $infos['email'] = "iyeddammakpro@gmail.com";
  12.     $infos['url'] = "https://www.linkedin.com/in/iyed-dammak-7a1915283";
  13.     ?>
  14. </head>
  15. <body>
  16. <header style="background-color: rgb(255,56,126); height: 100px;">
  17.     <img style="width: 100px; height: 100px; float: right;" src="https://media.licdn.com/dms/image/D4E03AQEXow54B7kGPA/profile-displayphoto-shrink_800_800/0/1703852297023?e=2147483647&v=beta&t=fjiCUQ2N4vOV77GrcNRnMN3hn03XxOiL6bKa8s9fiBs" alt="ce text est affivhé en cas ou il n'y a pas d'image">
  18.     <p>
  19.         <b>NOM: </b> DAMMAK <br>
  20.         <b>Prenom: </b> iyed <br>
  21.         <b>Age: </b> 21 Ans <br>
  22.     </p>
  23. </header>
  24. <section>
  25.     <div>
  26.         Parcours Académique : knjguhfyt
  27.     </div>
  28.     <div>
  29.         Projet personnel : knjguhfyt
  30.     </div>
  31.     <div>
  32.         expérience académique : knjguhfyt
  33.     </div>
  34.     Courriel: <a href="mailto:<?php echo $infos['email']; ?>"><?php echo $infos['email']; ?></a> <br>
  35.     Page perso: <a href="<?php echo $infos['url']; ?>">cliquez ici</a> <br>
  36.     date= <?php echo date('Y-m-d H:i:s');?>
  37.     <?php $tab=array("B"=>"blue", "R"=>"red", "G"=> "green", "Y"=> "yellow" , "O"=>"orange" ) ?>
  38.     <?php echo "<ul>";
  39.     foreach($tab as $key => $value) {
  40.         echo "<li  style='color:$value'> Element[$key$value </li>";
  41.     ;} 
  42.     echo "</ul>";?>
  43.  
  44.    
  45.  
  46. </section>
  47. <footer style="text-align: center; height: 15%; background-color: rgb(57, 54, 73);">
  48.     © 2024 DAMMAK iyed
  49. </footer>
  50. </body>
  51. </html>
  52. <?php $time_end= microtime(True);
  53. echo $time_end-$time_start ;?>
  54.  
  55.  
File Description
  • DAMMAK iyed
  • PHP Code
  • 28 Feb-2024
  • 1.71 Kb
You can Share it: