Guest User

Untitled

a guest
Jan 12th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1.  
  2. 2.4 Manipulation des chaines de caractères
  3.  
  4. Chaines.php
  5.  
  6. <html>
  7. <head>
  8. <title>les chaines</title>
  9. </head>
  10. <body>
  11. <?php
  12. echo "\"guillemets\" 'quotes' \antislash\ "."<br>";
  13. echo '"guillemets" \'quotes\' \\antislash\\'."<br>";
  14. echo <<< text
  15. "guillemets" 'quotes' \antislash\
  16. text;
  17. ?>
  18. </body>
  19. </html>
  20.  
  21.  
  22. concatenation.php
  23.  
  24. <html>
  25. <head>
  26. <title>concatenation</title>
  27. </head>
  28. <body>
  29. <?php
  30. $var1="text1";
  31. $var2="text2";
  32. echo $var1."_".$var2."<br>";
  33. echo "$var1 $var2";
  34. ?>
  35. </body>
  36. </html>
  37.  
  38.  
  39. chaineBlancs.php
  40.  
  41. <html>
  42. <head>
  43. <title>chaineBlancs</title>
  44. </head>
  45. <body>
  46. <?php
  47. $var1=" text1 ";
  48. echo trim($var1);
  49. ?>
  50. </body>
  51. </html>
  52.  
  53.  
  54. explode.php
  55.  
  56. <html>
  57. <head>
  58. <title>concatenation</title>
  59. </head>
  60. <body>
  61. <?php
  62. $var1="coucou";
  63. $var2=explode(" ",$var1);
  64. ?>
  65. </body>
  66. </html>
  67.  
  68.  
  69. asso.php
Add Comment
Please, Sign In to add comment